MCQ Single Best Answer Not Set

QWhat will be the output after the following statements?
x = open('python.txt', 'r')
print(x.name)

ID: #3733 Python File Handling 199 views
Question Info
#3733Q ID
Not SetDifficulty
Python File HandlingTopic

Choose the Best Option

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

  • A python
  • B python.txt opened
  • C python.txt or FileNotFoundError
  • D python r
Correct Answer: Option C

Explanation

python.txt or FileNotFoundError

Share This Question

Challenge a friend or share with your study group.