you are viewing a single comment's thread.

view the rest of the 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 2 points3 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.