with open('file1.txt','r') as f:
listl=[]
for line in f:
strip_lines=line.strip()
listli=strip_lines.split()
print(listli)
m=listl.append(listli)
print(listl)
with open("file.txt") as file:
lines = file.readlines()
lines = [line.rstrip() for line in lines]
with open(filename) as file:
lines = file.readlines()
lines = [line.rstrip() for line in lines]
with open('file.txt', 'r') as f:
data = f.read().splitlines()