You just have to guess the number the computer has randomly chosen using randint() , you have only 5 tries (limited using a variable count) and the number lies in between 1 and 50. It gives an idea of how close you are to guessing the number by saying "you have guessed too small" or "you have guessed too high", this is done by using simple if elif statements.
You just have to guess the number the computer has randomly chosen using randint() , you have only 5 tries (limited using a variable count) and the number lies in between 1 and 50. It gives an idea of how close you are to guessing the number by saying "you have guessed too small" or "you have guessed too high", this is done by using simple if elif statements.