- readlines() is a python function used in file handling which read all line of the file and make a list of each line.
-It return the list that contain the each line of the file.
file data is -
then readlines() return the ['first','second','third']
#write data in file in multiple lines
#read file line by line
['Firstn', 'secondn', 'Thirdn', 'Fourthn', 'Fiven', 'Sixn']
-In this program, we write the data in file in mulitple lines then readlines()
take each line and make the list and return.