Python Forum
why is this variable not printing out properly?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
why is this variable not printing out properly?
#5
Now that 3.6 is out,also f-string.
>>> var1 = 2 + 2
>>> print(f'The result of all calculations is {var1} and we are done.')
The result of all calculations is 4 and we are done.
Reply


Messages In This Thread
RE: why is this variable not printing out properly? - by snippsat - Dec-27-2016, 09:43 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Printing the variable from defined function jws 7 1,477 Sep-03-2023, 03:22 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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