Popular posts from this blog
CALCULATING FACTORIALS IN PYTHON LANGUAGE
NUMBER GUESSING GAME CODE FOR BEGINNERS
import random print ( "Here You Have To Guess The Numbers From 0-10" ) print ( "If You Got right You will Get a Point" ) print ( "if you want to exit type 12" ) score = 0 while True : number = int ( input ( "Enter The Number You Guessed Here: " )) a = random.randrange( 10 ) if number == a: score = score+ 1 print ( "miracle You Got Right Answer." ) elif number == None : pass elif number == 12 : print ( f"Here i...
Comments
Post a Comment