guessing game


In [ ]:
from random import randint
b= randint(1,99)
print("lets start the game!!!")
i=1
while i<4:
    a= input("enter a number between 1 to 100")
    c= int(a)
    if c==b:
        print("correct guess")
        
        break
    elif c<b:
        print("number is slightly less")
    else:
        print("number is greater")
    i+=1
    print(b)
    print("sorry you lose")

In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]: