MCQOPTIONS
Saved Bookmarks
| 1. |
What happens if the file is not found in the code shown below? 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 |
| B. | Assertion error |
| C. | Input output error |
| D. | Name error |
| Answer» B. Assertion error | |