Answer (Choose 1 answer)
The following code sequence fails with a traceback when the user enters a file that does not exist. How would you avoid the traceback and make it so you could print out your own error message when a
bad file name was entered?fname = raw_input('Enter the file name: ')
fhand = open(fname)
A. on error resume next
B. try/except
C. signal handlers
D. try/catch/finally
ORi
Q: 46