G
5

Shoutout to the free Python course on Codecademy. I tried to make a simple number guessing game and it kept crashing because I forgot to convert my input from a string to an integer.

2 comments

Log in to join the discussion

Log In
2 Comments
jessew83
jessew8324d ago
Ugh, the classic string trap. I swear I've written that exact same game and spent twenty minutes staring at the error before I remembered the int() function. It's like a right of passage at this point.
7
dakotal16
dakotal1624d ago
Oh man, the string to integer thing gets me every time too. That's a classic beginner mistake.
6