Examveda
Examveda

How can you create a new file in Python if it doesn't exist?

A. By using the 'x' mode when opening the file

B. By using the 'create' keyword

C. By using the new() function

D. By using the 'c' mode when opening the file

Answer: Option A


This Question Belongs to Python Program >> Files Handling In Python

Join The Discussion

Related Questions on Files Handling in Python