A Admin • 833.24K Points Coach Q. What is the correct way to open a file for writing in Python? (A) open('file.txt', 'r') (B) open('file.txt', 'x') (C) open('file.txt', 'a') (D) open('file.txt', 'w') Correct Answer - Option(D) Views: 31 Filed under category Python Hashtags: Share Manage Tags
Discusssion
Login to discuss.