Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
When we can use the else keyword in try … except statement?
When we can use the
else
keyword in
try … except
statement?
In try...except statement we can not use else keyword.
try...except
We can use only except or else keyword but not both.
except
We can use the else keyword to define a block of code to be executed if no errors were raised
When we return some value from try block
try
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!