In Ruby, you can do something like:
a = 4
b = 5
match = {}
match["#{a}-#{b}"] = 0
Then, if i say:
match["4-5"]
The result is 0.
Can I do something similar in a python dictionary? I can't seem to get string formatting to work with a dictionary.
EDIT:
With f-strings in Python 3+, one can now do something like:
match[f"{a}-{b}"] = 0