Question 6
Back to Exercise
Why is except: with no exception type considered bad practice?
- A It is a SyntaxError
- B It catches nothing
- C It slows the program down
- D It catches every exception, including KeyboardInterrupt and programming mistakes, hiding bugs Correct
Correct Answer: Option D
Catch the specific exceptions you expect and can handle.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!