FAQ: Loops - Guess Number

please can someone explain to me why that tries++ stuff is necessary, i would really to its function?

who needs 50 tries to guess a number between 1-10?
this doesn’t make any sense to me.

Come on codecademy… I added the while loop!

Sorry, I just put “and” instead of “&&”

It also doesn’t matter if I did not put the colon and the space in “Wrong guess, try again”. :rocket:

Your while expression is illegal. That would never work in any C style language. You need to replace and with the appropriate Logical operator.
Logical operators ( !, &&, || )