Q:

guess game using python programming

0

using python programming language, write a program for a guess game,

use while loop to do unlimited rounds for try times

 

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

#guess game
correctNumber=int(input("please enter the number "))
running=True
while running==True:
    guess=int(input("enter your guess:"))
    if guess==correctNumber:
        print("congratulations,, you guessed it!")
        running=False
    elif guess>correctNumber:
        print("wrong number, your number is bigger than correct number")
    elif guess

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now