1.

Suppose content of 'Myfile.txt' is:Twinkle twinkle little starHow I wonder what you areUp above the world so highLike a diamond in the sky What will be the output of the following code? myfile = open("Myfile.txt")data = myfile.readlines()print(len(data))myfile.close()a. 3 b. 4 c. 5 d. 6

Answer»

Answer is b. 4



Discussion

No Comment Found

Related InterviewSolutions