# Number Guessing Game \[Exercise\]

**URL:** https://forum.codewithmosh.com/t/number-guessing-game-exercise/28673
**Category:** Python
**Created:** [September 11, 2024, 12:23am UTC](https://forum.codewithmosh.com/t/number-guessing-game-exercise/28673 "2024-09-11T00:23:26Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kevinhu](https://avatars.discourse-cdn.com/v4/letter/k/ba9def/32.png) [@kevinhu](https://forum.codewithmosh.com/u/kevinhu)
#### Post date: [September 11, 2024, 12:23am UTC](https://forum.codewithmosh.com/t/number-guessing-game-exercise/28673/1 "2024-09-11T00:23:27Z")

</div>

A game where the program randomly selects a number, and the user has to guess it. Provides feedback if the guess is too high or too low and keep track of the number of attempts the user makes.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/4/43b6571369cd8e2a32cdf2120c769b8b83c4a3c9.png)
