Untitled

mail@pastecode.io avatar
unknown
python
2 years ago
334 B
1
Indexable
Never
import random
y = int(input("enter a max number till where u want \n ")
x = random.randint(3,y)
print(f"you've chosen the number, now guess the number lying between 1 and {y} \n ")
z = int(input())
if z <= 3:
  print("choose bigger number than 3")
if z == x:
  print("ZAMN YOU GOT THE NUMBER CORRECT")
if z != x:
  print("try again")