MCQ Single Best Answer Not Set

Q What does the following statement do?
x = open('python.csv', 'w')

ID: #3725 Python File Handling 344 views
Question Info
#3725Q ID
Not SetDifficulty
Python File HandlingTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Opens or creates a text file named python.csv to write
  • B Opens or creates a text file named python.csv to append
  • C Opens or creates a text file named python.csv to read
  • D Opens a new file named python.csv to write
Correct Answer: Option A

Explanation

Opens or creates a text file named python.csv to write

Share This Question

Challenge a friend or share with your study group.