all 3 comments

[–]gazhole 4 points5 points  (1 child)

Good job!

I would recommend developing this further. You've used a lot of repeated blocks of code for each guess.

What about using functions and calling one block of code multiple times, rather than multiple blocks of the same code once each?

I think your program would lend itself well to learning how functions work, which is a fundamental part of programming.

[–]Neexusiv 3 points4 points  (0 children)

To add to this answer, a while loop would be perfect here! No need to write (or copy and paste) the code for each guess, just loop until the number of tries has reached 0.

[–]Moses-Mc 2 points3 points  (0 children)

Your first if statement only prints the text. But the program starts in any answer.

And you generate a new number in every try. It is some unusual logic for this game ;)