Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Quick help!
#3
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 :)
Reply


Messages In This Thread
Quick help! - by Ellisrb - May-02-2018, 10:57 AM
RE: Quick help! - by j.crater - May-02-2018, 11:18 AM
RE: Quick help! - by ThiefOfTime - May-02-2018, 11:21 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  A quick question teczone 4 3,161 Sep-06-2018, 03:44 PM
Last Post: snippsat
  quick way to convert in both 2 and 3 Skaperen 10 8,996 Nov-03-2016, 04:43 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020