Python program to How to Use File ReadLines Method

text = [] fp = open("Put Your file path here") data = fp.readlines() fp.close() print(data)

 

 

Output:

Python beginners - ProgramPython beginners - Program