आपको टेक्स्ट फ़ाइल, file1.txt दी जाती है, जिसके कंटेंट्स इस प्रकार है:
hello everyone
today is a monday
all the best for your exams
निम्नलिखित कोड का आउटपुट क्या होगा?
myfile = open("file1.txt", "r")
str = myfile.readline(20)
print(str)
myfile.close()
1
hello everyone\ntoday
2
hello everyone
today
3
hello everyone
4
उपरोक्त में से कोई नहीं