کد بازی حدس زدن شماره با پایتون
import random
guesses_made = ۰
name = input('Hello! What is your name?\n')
number = random.randint(۱, ۲۰)
print ('Well, {0}, I am thinking of a number between 1 and 20.'.format(name))
while guesses_made < ۶:
guess = int(input('Take a guess: '))...