Review the spec.
Prompts the user for a level,
n
. If the user does not input a positive integer, the program should prompt again.Randomly generates an integer between 1 and
n
, inclusive, using therandom
module.
The program is not specified to guess the level. The program needs to generate a random number between 1 and level using the random
module. That will be the number to guess.