Given:
dict = {\"path\": \"/var/blah\"}
curr = \"1.1\"
prev = \"1.0\"
What\'s the best/shortest way to interpolate the string to generate t
Update 2016: As of Python 3.6 you can substitute variables into strings by name:
>>> origin = "London"
>>> destination = "Paris"
>>> f"from {origin} to {destination}"
'from London to Paris'
Note the f" prefix. If you try this in Python 3.5 or earlier, you'll get a SyntaxError.
See https://docs.python.org/3.6/reference/lexical_analysis.html#f-strings