Q. Write a method in Python to read the content from a text file DIARY.TXT line by line and display the same on the screen.
Answer =
f1 = open("DIARY.TXT ",'r') data = f1.readlines() for i in data : print(i) f1.close()
Answer =
f1 = open("DIARY.TXT ",'r') data = f1.readlines() for i in data : print(i) f1.close()
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )