#Reversing the words on multiples lines in a file
4 messages · Page 1 of 1 (latest)
4 messages · Page 1 of 1 (latest)
I have tried many different codes but all of them have failed, I can't figure out how to reverse the words and not the lines.
This is what I have so far...
myfile = open("Input.txt", "r")
mylist = myfile.readlines()
myfile.close()
lines = ''.join(mylist)
while lines != :
print(lines)
Which im not too sure is correct