Question: The following code segment fname raw_input('Enter the file name: ) try: fhand open (fname) except: print 'File cannot be opened:', fname exit() is used to



The following code segment fname raw_input('Enter the file name: ") try: fhand open (fname) except: print 'File cannot be opened:', fname exit() is used to O Insure that the inputted file name has been successfully opened O Gives the programmer access to the file contents through the file handle fhand O Leaves the program if the inputted file cannot be opened All of the above None of the above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
