@clcoding Answer: C
Solution: If we understand the try-except structure, we can easily solve this question.
So let's get into:
1. What try-except is for
2. How try-except works
3. Getting the answer for this code snippet
Ready?
+
@clcoding 1. What try-except is for
try-except is a feature in Python, for the purpose of Error Handling.
Let's understand the concept of Error Handling
Sometimes, we suspect that certain pieces of code will throw errors.
And, I don't mean errors due to our own typos, but
+