Question 13
Back to Exercise
What does the EAFP coding style mean?
- A Check every condition before acting
- B Never use exceptions
- C Try the operation and handle the exception if it fails Correct
- D Catch all exceptions at the top level
Correct Answer: Option C
"Easier to Ask Forgiveness than Permission" – the Pythonic alternative to Look Before You Leap.
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!