How do I format a string using a dictionary in python-3.x?
Since the question is specific to Python 3, here’s using the new f-string syntax, available since Python 3.6: Note the outer single quotes and inner double quotes (you could also do it the other way around).