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

πŸ‘οΈ
79
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
86%
Success Rate