--- id: 2a486e3e521b79b874fb5e9a title: Try/Except challengeType: 11 videoId: 1tkhMom_SZw dashedName: try-except --- # --description-- In this video, you will learn how to handle exceptions using try/except blocks to make your programs more robust. # --questions-- ## --text-- What will be the result for the following code if the user provides the string `"random"`? ```python try: number = int(input("Enter a number: ")) print(number) except: print("Invalid Input") ``` ## --answers-- Nothing will be output to the console. --- The string `"random"` will be output to the console. --- The string `"Invalid Input"` will be output to the console. --- The program will crash. ## --video-solution-- 3