By Md Omer
A Project that allows the user to predict a number from 1 to 20, then matches it with Machine's number using Python.
In this project, I have written the source code of a game that I created with the help of python. Here, the user is asked about the difficulty level that he might wanna choose and then the program executes according to the user's response. The number of chances depends on the user's choice. If the user predicts the correct number then he wins the round, else he loses.
1. Used if-Elif loop for difficulty selection.
2. Used random module for generating a random number
The below image shows the output of the project: