Q. What happens if open("file.txt", "x") is executed when the file already exists?

यदि फ़ाइल पहले से मौजूद है तो open('file.txt', 'x') निष्पादित होने पर क्या होता है?

A
Opens the file in read mode
B
Raises an error
C
Overwrites the file
D
Appends to the file

Explanation

Explanation will be available soon. Please stay tuned.

व्याख्या जल्द ही उपलब्ध होगी। कृपया बने रहें।

Invest in Future Achievers

Your support helps keep Exam Achiever 100% free for students preparing for exams.

Thanks for your support!

Comments

Leave a Comment