Please help! Very stuck. 4.2 step 8

I am getting severely hung up in a few of the modules regarding input. For example, in 4.2 step 8, you are given the attached code. It tells you to play around with different numbers, but each time I put a number
somewhere in the code, I get an error message. I don’t know if I am not inputing something somewhere or what, but the only time I get an answer that is not “Enter an Integer”, is an error message. I don’t understand the instructions or why it isn’t converting correctly. Do I need to change what is in the parentheses? Do I just need to insert a number somewhere? Please.

Screenshot 2023-05-02 at 3.01.21 PM (2)
Screenshot 2023-05-02 at 3.01.52 PM (2)

Hi there,
In short, I think you are misinterpreting the directions. You don’t need to input a number in the code, instead you need to enter it after the prompt in the console. So after “Enter an integer” in the black console box, you enter a number and the code will run. It is asking you (the user) to input the number to show you how what you enter determines which if statement executes based on your entry.

Screen Shot 2023-05-02 at 9.51.37 PM

Hope this helps!

Got it! Thank you so much!

1 Like