Gues random number
import random
i=0
randon_range=int(input("Enter range="))
while True:
n=int(input("Your Gues the number ="))
x=random.randint(0,randon_range)
print("Computer gues=",x)
if x==n:
print("****You won****")
i=i+1
break
else:
i=i+1
print("!!!!!!You loos!!!!!!!")
print("Number of gues=",i)
Comments