Vidyalelo
Python · Q64

Exception Handling in Python

Programming · Python · question 64

Q64

What happens if the file is not found in the following Python code? a=False while not a: try: f_n = input("Enter file name") i_f = open(f_n, 'r') except: print("Input file not found")

A.
No error
Answer
B.
Assertion error
C.
Input output error
D.
Name error

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board