Python Forum
New to python and need help with spacing
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New to python and need help with spacing
#5
(Sep-11-2021, 08:27 PM)Yoriz Wrote: Using python 3
user_input = input("What are your initials? ")
print(" ".join(user_input for _ in range(7)))
Output:
What are your initials? GIS GIS GIS GIS GIS GIS GIS GIS

This is the output i am trying to get, please remember that the \\\ are meant to be blanks spaces

GIS GIS GIS GIS GIS GIS GIS
GIS\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\GIS
GIS\\\\\\\\\\\\\\\GIS\\\\\\\\\\\\\\\\GIS
GIS\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\GIS
GIS GIS GIS GIS GIS GIS GIS
Reply


Messages In This Thread
RE: New to python and need help with spacing - by pmorgan39339 - Sep-11-2021, 08:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Latex spacing question StillAnotherDave 0 1,947 Mar-28-2020, 05:51 PM
Last Post: StillAnotherDave

Forum Jump:

User Panel Messages

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