Apr-14-2022, 03:24 PM
(This post was last modified: Apr-14-2022, 05:23 PM by Yoriz.
Edit Reason: Added code tags
)
readfile1 = open("file.txt", "r") f = readfile1.readlines() newList = [] for line in f: newList.append(line.strip()) print(newList)