Single Choice Not Set

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

ID: #3729 Python File Handling 227 views
Question Info
#3729Q 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 read and write
  • C Opens a text file named python.txt to write to
  • D Opens or creates a text file named python.txt to read from or write to at the end of the file
Correct Answer

Explanation

Opens or creates a text file named python.txt to read from or write to at the end of the file

Share This Question

Challenge a friend or share with your study group.