The "For" loop challenge

This is how I solved the “For” loop challenge. I used a constant expression at the top of the file for the amount of guesses.