πŸ“Š Python
Q. Which mode is used to write to a file, creating it if it doesn't exist?
  • (A) r
  • (B) w
  • (C) x
  • (D) a
πŸ’¬ Discuss
βœ… Correct Answer: (B) w

Explanation: The 'w' mode writes to a file and creates it if not present.

Explanation by: Mr. Dubey
The 'w' mode writes to a file and creates it if not present.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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