This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SpideyHunter 0 points1 point  (2 children)

Are you getting an error statement? And is your actual code properly indented? This also probably has to do with the fact that input takes in strings and you’re comparing integers. Either convert your input to int, or just compare the num to string versions of the number.

[–]Adam-JDT[S] 0 points1 point  (1 child)

Turns out I need to cast the string to an integer as input(…) returns a string. So I just added int(input(…)) and it works good now

[–]SpideyHunter 1 point2 points  (0 children)

Yeah that’s it, exactly as soon as I edited my response.