Q. Which function is used to read a line from a file in Python?

  • (A) readline()
  • (B) read()
  • (C) get()
  • (D) line()
πŸ’¬ Discuss
βœ… Correct Answer: (A) readline()
Explanation: The `readline()` method reads a single line from a file.
Explanation by: Rati Dubey
The `readline()` method reads a single line from a file.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
75
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
81%
Success Rate