Interactive Guessing game in Python
4.1.5 - Identify the decisions required for the solution to a specified problem. (Different actions are taken based on conditions.)
Identify the inputs and outputs required in a solution.
CLICK HERE to start the Tutorial
Programming Activity
Today we are going to make an interactive guessing game in Python.
This is going to be a simple guessing game where the computer will generate a random number between 1 to 10, and the user has to guess it in 5 attempts.
Based on the user’s guess computer will give various hints if the number is high or low. When the user guess matches the number computer will print the answer along with the number of attempts.
Create your game in REPLIT