Posts

Showing posts with the label guess the number game

Guess the number game in python

Image
Python mini project - Guess the number game Everyone will be looking for a mini project after learning the basic programming language concepts. Here you will be able to find a very basic mini project using python. Explanation : Ask the user to enter a number between 1 and 10. At the same time generate a random number between 1 and 10. If the number entered by the user matches the random number generated increase the score of the user. Alternatively, if the number guessed by the user doesn't match the random number generated, proceed with the next attempt. The user will be given a total of five numbers to guess. Each time the use r guesses right, the score will be increased and the final score will be calculated for 5 marks. Constraints : The user is given five numbers to guess. Total score is five. For each new attempt a new random number is generated. Final score will be calculated for five. For example, Let the random number be 6 and if the user entered 3 the