A Admin • 831.35K 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: 19 Filed under category Python Hashtags: Share Manage Tags
Discusssion
Login to discuss.