Select the correct statement about the code given below:
>>> myobj=open("myfile.txt", 'r')
>>> print(myobj.readlines())1.This code will read one line from the file.
2. This code will read all the lines from the file.
3.This code will read only last line from the file.
4.None of the above
Answer:2
Posted Date:-2021-12-12 00:32:36