0

looked at several other questions related to the same issue but everything that was described in those other posts have not been able to solve my problem.

Basically I want to take the vertical output and display it horizontally.

after this.

fh = open(file)
fhread = fh.readlines()
findz = "aa"

for line in fhread:
   if line.startswith(findz):
      line_string = line.split("-", 1)
      substring = line_string[0]
      string = (substring.replace('aa', ''))
      print(string)

Output

1
2
3
4
5
6

But like I mentioned above every example I have looked from the internet and tried still does not help me make this go horizontal with a space.

Thanks in advance for any help as it is very much appreciated.

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
Goooba
  • 1

0 Answers0