Debugger Python
#preinstalled package
import pdb; pdb.set_trace()
Nice Nightingale
#preinstalled package
import pdb; pdb.set_trace()
#1
https://www.onlinegdb.com/online_python_compiler
#2
https://repl.it/languages/python3
import random
num,name,gueses=random.randint(1,100),input("Hello, What's your name?"),10
print('Okay!'+name+'guess a number between 1 and 10:')
while guesses<10:
user_guesses=int(input())
guesses+=1
if user_guess < num:
print('your guess is too low')
if user_guess>num:
print('your guess is too high')
if user_guess==num:
break
if user_guess=num:
print('You guessed the number in'+str(guesses)+'tries')
else:
print('Sorry,Actually the number was'+str(num))
please tell me the reason which mistake in this code