Python Forum
Understanding formatting
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Understanding formatting
#4
Hello,
numbers represent position of the variable in format() tuple. With using f strings, instead of numbers you could also enter variable names. There is a nice page on the subject on Python docs page. Here are examples for a quick glance.
Reply


Messages In This Thread
Understanding formatting - by mickandralphscrier - Nov-14-2018, 04:45 PM
RE: Understanding formatting - by Larz60+ - Nov-14-2018, 04:51 PM
RE: Understanding formatting - by j.crater - Nov-14-2018, 04:59 PM
RE: Understanding formatting - by Larz60+ - Nov-14-2018, 06:22 PM
RE: Understanding formatting - by j.crater - Nov-14-2018, 06:34 PM

Forum Jump:

User Panel Messages

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