Programming and Problem Solving through Python : File Processing in Python

टेक्स्ट फाइल data.txt की पहली लाइन को पढ़ने के लिए निम्न में से कौन सा विकल्प इस्तेमाल किया जा सकता है? , Which of the following options can be used to read the first line of a text file data.txt?

Which of the following options can be used to read the first line of a text file data.txt?




Solution
C. myfile = open('data.txt'); f.readline()



CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Exam Quiz Website development Company in Allahabad