SUBJECT PYTHON PROGRAMING 1)Fix the following code so that if a user types "hello" for input, there is no crash. Instead, "oops" is printed to the console. year_born = int(input("In what year were you...

SUBJECT PYTHON PROGRAMING 1)Fix the following code so that if a user types "hello" for input, there is no crash. Instead, "oops" is printed to the console. year_born = int(input("In what year were you born?")) print("You were born in %d" % year_born 2)List four types of built-in Python errors (e.g. IndentationError is one; name four more) 3)Write code that tries to get int input from the user. If a ValueError gets raised, capture the Error in a variable called "e" and print the variable after converting it to a string

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here