Q. Which method is used to open a file in Python?

  • (A) file()
  • (B) open()
  • (C) read()
  • (D) with()
πŸ’¬ Discuss
βœ… Correct Answer: (B) open()
Explanation: The open() function is used to open files in Python.
Explanation by: Mr. Dubey
The open() function is used to open files in Python.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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