Single Choice Not Set

QWhat does the following statement do?
x = open('python.txt', 'w+')

ID: #3728 Python File Handling 222 views
Question Info
#3728Q ID
Not SetDifficulty
Python File HandlingTopic

Choose the Best Option

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

  • A Opens a text file named python.txt to read
  • B Opens a text file named python.txt to write to or read from
  • C Opens a text file named python.txt to write
  • D Opens a new file named python.txt to append
Correct Answer

Explanation

Opens a text file named python.txt to write to or read from

Share This Question

Challenge a friend or share with your study group.