Q. What is the correct way to read a file line by line?

किसी फ़ाइल को पंक्ति दर पंक्ति पढ़ने का सही तरीका क्या है?

A
file.read()
B
file.readlines()
C
file.readline()
D
for line in file:

Explanation

Explanation will be available soon. Please stay tuned.

व्याख्या जल्द ही उपलब्ध होगी। कृपया बने रहें।

Invest in Future Achievers

Your support helps keep Exam Achiever 100% free for students preparing for exams.

Thanks for your support!

Comments

Leave a Comment