Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
print() examples
#1
print('%10s' % ('test',))
What is the purpose or difference between the having the colon after the 'text' string as in code above and without it as in code below:

print('%10s' % ('test')
The two pieces of code seem to do the same thing!
Reply


Messages In This Thread
print() examples - by leodavinci1990 - Aug-21-2020, 03:54 AM
RE: print() examples - by ibreeden - Aug-21-2020, 09:00 AM
RE: print() examples - by Axel_Erfurt - Aug-21-2020, 09:52 AM
RE: print() examples - by snippsat - Aug-21-2020, 03:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Super flexibility in python, examples Kakha 10 3,874 Jan-08-2021, 12:40 AM
Last Post: Skaperen
  Examples of Customer requirements ComputerAstronaut 1 1,867 Dec-08-2020, 03:22 AM
Last Post: Larz60+
  mpi4py examples/tutorials MuntyScruntfundle 1 2,717 Dec-01-2018, 10:22 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