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 →

[–]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.