Our website uses cookies to ensure the functionality of the website, to collect and analyze information about the performance and usage of the website. Privacy Policy
Quiz: else and finally
What does this program print?
1for text in["5","five"]:2try:3 number =int(text)4except ValueError:5print("Not a number")6else:7print("Got", number)8finally:9print("Checked", text)