Python Forum
Formatted table with headings
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Formatted table with headings
#2
you should always post enough of a code snippet so that it can be run, otherwise we can only approximate the proper answer
assuming fields of 17 characters each:
head = ['redshift', 'dA', 'dL']
print(f'{head[0]:17s} {head[1]:17s} {head[2]:17s}')
Reply


Messages In This Thread
Formatted table with headings - by KameronG - Feb-08-2019, 09:27 PM
RE: Formatted table with headings - by Larz60+ - Feb-09-2019, 12:38 AM

Forum Jump:

User Panel Messages

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