Given:
dict = {\"path\": \"/var/blah\"}
curr = \"1.1\"
prev = \"1.0\"
What\'s the best/shortest way to interpolate the string to generate t
You can also (soon) use f-strings in Python 3.6, which is probably the shortest way to format a string:
print(f'path: {path} curr: {curr} prev: {prev}')
And even put all your data inside a dict:
d = {"path": path, "curr": curr, "prev": prev}
print(f'path: {d["path"]} curr: {d["curr"]} prev: {d["prev"]}')