Programming and Problem Solving through Python : File Processing in Python

रीडलाइन () मेथड क्या रिटर्न करता है? , What does readlines() method return ?

What does readlines() method return ?




Solution
D. List



Explanation

In Python, the readlines() method is a method used with file objects. It reads all the lines in a file and returns them as a list of strings. Each element in the list corresponds to a line in the file.

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