Python - Advanced Exception Handling
What happens to the
else block in a try-except-else structure if an exception is raised in the try block?else block in a try-except-else structure if an exception is raised in the try block?try block runs first. If an exception occurs, control moves to the except block.else block runs only if no exception occurs in the try block, so it is skipped if an exception happens.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions