PFP191_-_SP_2024_-_FE_1630.webp
white_cloud

PFP191_-_SP_2024_-_FE_1630.webp

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

Thông tin

Category
PFP191
Thêm bởi
white_cloud
Ngày thêm
Lượt xem
764
Lượt bình luận
3
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PFP191_-_SP_2024_-_FE_1630.webp
File size
168.7 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên Bottom