# Number-Guessing with a Counter Modify your previous [number-guessing game](keep-guessing.md) so that they can guess until they get it right **AND** count the number of tries it takes them to guess it. Name the file: `guess_with_counter.py` ``` I have chosen a number between 1 and 10. Try to guess it. Your guess: 5 That is incorrect. Guess again. Your guess: 4 That is incorrect. Guess again. Your guess: 8 That is incorrect. Guess again. Your guess: 6 That's right! You're a good guesser. It only took you 4 tries. ``` --- ©2013 [Graham Mitchell](https://programmingbydoing.com/) This assignment is licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States License](https://creativecommons.org/licenses/by-nc-sa/3.0/us/deed.en_US). ![Creative Commons License](images/by-nc-sa.png)