πŸ“Š Python
Q. What does the method readlines() return?
  • (A) A string
  • (B) A list of strings
  • (C) A dictionary
  • (D) An integer
πŸ’¬ Discuss
βœ… Correct Answer: (B) A list of strings

Explanation: readlines() reads the file and returns a list of lines as strings.

Explanation by: Mr. Dubey
readlines() reads the file and returns a list of lines as strings.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
67
Total Visits
πŸ“½οΈ
10 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
90%
Success Rate