Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekkrsk authored Mar 7, 2022
1 parent 709138a commit 108c03a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions guess_nmber_one_time.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import random

number = random.randint(0,100)

print("Guess a magic number between 1 to 100")

guess = eval(input("Enter your guess: "))

if guess == number:
print("Yes, the number is",number)
elif guess > number:
print("Your guess is too high")
else:
print("Your guess is too low")

print("Correct guess is",number)

0 comments on commit 108c03a

Please sign in to comment.