Question: Consider the following code: try: year year except: input(What year were you born?) int(year) print(You are around, 2021 year, years old) If the user accidentally

 Consider the following code: try: year year except: input("What year were

Consider the following code: try: year year except: input("What year were you born?") int(year) print("You are around", 2021 year, "years old") If the user accidentally typed "200.8" for input, what statement could fill in the blank in the except block so the program prints: You are around 0 years old

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!