Q. Which of the following is used to read a file in Python?

  • (A) file.read()
  • (B) file.open()
  • (C) file.input()
  • (D) file.get()
πŸ’¬ Discuss
βœ… Correct Answer: (A) file.read()
Explanation: read is used to read contents of a file.
Explanation by: Mr. Dubey
read is used to read contents of a file.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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