Single Choice Not Set

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

ID: #3727 Python File Handling 389 views
Question Info
#3727Q 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 from or write to
  • B Opens a text file named python.txt to read
  • 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 read from or write to

Share This Question

Challenge a friend or share with your study group.