Consider the following code segment: done = False while not done : try : filename = input("Enter the file name: ") inFile = open (filename, "r") except IOError : print ("Error: File not found.") It is...


Consider the following code segment:<br>done = False<br>while not done :<br>try :<br>filename = input(

Extracted text: Consider the following code segment: done = False while not done : try : filename = input("Enter the file name: ") inFile = open (filename, "r") except IOError : print ("Error: File not found.") It is supposed to keep on prompting the user for file names until the user provides the name of a file that can be opened successfully. What line of code should be placed in the blank to achieve this goal? Select one: done = inFile done = True done = not inFile done = False

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here