May-02-2018, 11:21 AM
Also, which python version do you use? This formatting method is supported in Python 3.6+ If you use 3.5 this way will not work and will throw something like this:
Error:File "<ipython-input-49-81c34fb8cbaf>", line 14
print(f"{item} €{self.menu[item]}")
^
SyntaxError: invalid syntax
And also the point that j.crater mentioned :)