Every dad's favorite car game
I don't know about you, but when Dad got tired of us arguing in the back seat he always pulled out a classic car game.
D: I'm thinking of a number between 1 and 100.Kid: Is it 40?
D: Higher
Kid: Is it 80?
D: Lower
Kid: Is it 57?
D: How did you guess?
Write a Python function that conforms to the following:
- Function name
- guessingGame()
- Parameters
- The upper limit of the guessing game (100 is the standard car game)
- What it does
- Picks a "secret" number between 1 and the upper limit (between 1 and 100?)
- Uses the input() function inside of the guessingGame() function to keep asking for a number from the user until they guess the "secret" number.
- Return value
- None
- Examples