items=[] file = open("people.txt", "r") lines = file.readlines() for line in lines: items = lines print(line.replace(' ', ' '))