Untitled

mail@pastecode.io avatar
unknown
python
3 years ago
334 B
2
Indexable
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")