Python Forum
Arrangement of the Output
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Arrangement of the Output
#3
(May-18-2018, 10:19 AM)wavic Wrote: You can specify in the placeholder the number of characters to be taken by a string. If the string is shorter the rest will be filled with spaces. Because of 'United States of America' is 24 characters 26 lengths of the field will do the job just perfect: {0:26}. You can explicitly tell whether the string to be left or right aligned inside that 26 chars field: {0:>26}.
Thank you very much!
Reply


Messages In This Thread
Arrangement of the Output - by Leonzxd - May-18-2018, 09:40 AM
RE: Arrangement of the Output - by wavic - May-18-2018, 10:19 AM
RE: Arrangement of the Output - by Leonzxd - May-18-2018, 02:07 PM

Forum Jump:

User Panel Messages

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