Report Bug

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


A. Dictionary
B. String
C. Tuple
D. List


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.

Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad