Number Guessing Game
- Renee Li
- Oct 12
- 1 min read
This is the second exercise from Code with Mosh. So far I really enjoy building with Python as it is must faster to write compared to Csharp.
##create a reusable method as number guess game
## range is between 1 and 100. if out of range ask to try again
## if guess is out of range ask to try again continue
## if guess less than number to guess show too low
## if guess greater than number to guess show too high
##if guess == number to guess print you guess right
## catch invalid input exception
I will say the logics are pretty straight forward and very easy and enjoyable to write. The whole program took me less than 5 minutes write. I will include the implementation below.

Stay tuned!



Comments