f:
lines = [line.rstrip('\n') for line in f]
return lines
content = read_file("filename.ext")
Try using content.
Is this what you mean?
instead of reffering to myList variable now i can use content?
Обсуждают сегодня