Question: Which type of error will be raised if the user inputs anything other than an integer? current _ time _ str = input (

Which type of error will be raised if the user inputs anything other than an integer?
current_time_str = input("What is the current time (for an example 21:05:10)?")
current_time_int = int(current_time_str)
wait_time_str = input("How many hours do you want to wait")
wait_time_int = int(wait_time_str)
final_time_int = current_time_int + wait_time_int
print(final_time_int)
TypeError
ValueError
ParseError
NameError

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!