import random def game(): print('That is casino, u can be a winner, if u will chose correct number)') b = random.randint(0, 10) for i in range(0, 3): a = int(input(print('Enter the number: '))) if a > b: print('your number is bigger than our') elif a < b: print('your number is lower then our') elif a == b: print('you are win, Congratulation!') game() while True: flag = input('one more time?: ') if flag == 'yes' or 'y': game() else: break