Sep-11-2021, 08:00 PM
(This post was last modified: Sep-11-2021, 08:35 PM by pmorgan39339.)
I am trying to create a script that will take the users input and arrange the input in this manner. GIS being what the user input is. NOTE: I had to put the forward slashes\\\\ in the place of blank spaces. Because when I would preview the post it would close up lines 2, 3, 4. It should be just open spaces for example on line 2 it should have nothing but blank spaces in place of the \\\.
GIS GIS GIS GIS GIS GIS GIS
GIS\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\GIS
GIS\\\\\\\\\\\\\\\GIS\\\\\\\\\\\\\\\\GIS
GIS\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\GIS
GIS GIS GIS GIS GIS GIS GIS
I am able to get it to create the first line but very lengthy and there has to be a shorter way. Here is what I have.
quick edit I am using Python 3.9
Thanks in advance for any help.
GIS GIS GIS GIS GIS GIS GIS
GIS\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\GIS
GIS\\\\\\\\\\\\\\\GIS\\\\\\\\\\\\\\\\GIS
GIS\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\GIS
GIS GIS GIS GIS GIS GIS GIS
I am able to get it to create the first line but very lengthy and there has to be a shorter way. Here is what I have.
x = raw_input ("What are your initials? ") print x , x , x , x , x , x , x ,Is this the only way, if so how do I add all the blanks spaces for the next line.
quick edit I am using Python 3.9
Thanks in advance for any help.