Question: What should I do with my code? My code will stop and can't ask the question again, I don't know what to do to let

What should I do with my code? My code will stop andcan't ask the question again, I don't know what to do toWhat should I do with my code? My code will stop and can't ask the question again, I don't know what to do to let it works.

In python, Thanks!

1 2 3 4 5 6 7 8 9 10 11 12 try: b = input() a = int(input()) if a in range (1000, 2000): print("Enter the car's make: ", b) print("Enter the car's year model:", a) else: print("Invalid year. Try again. Enter the car's year model:") except (ValueError, ArithmeticError): print("Invalid year. Try again. Enter the car's year model:") Enter the car's make: Audi Enter the car's year model: 1900 Invalid year. Try again. Enter the car's year model: abc Invalid input: a numeric value was expected. Try again. Enter the car's year model: 2022 Invalid year. Try again. Enter the car's year model: 2020

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!