import random

random_number_integer  =  random.randint(0,1)
HEADS = 1
TAILS = 0

print(random_number_integer)

toss_input= input("what you want 'HEADS OR TAILS'\n").upper()

if random_number_integer == HEADS:
    print("coin is on head")
    if toss_input == "HEADS":
        print("HEADS\nyou won the toss")
    else:
        print("you loss the toss")

else:
    print("coin is Tails")
    if toss_input == "Tails":
        print("Heads\nyou won the toss")
    else:
        print("you loss the toss")
4a566f4e1b3d8ef77d502b8acba2a2cd1fa9c742
<mask token>

<mask token>
print(random_number_integer)
<mask token>
if random_number_integer == HEADS:
    print('coin is on head')
    if toss_input == 'HEADS':
        print('HEADS\nyou won the toss')
    else:
        print('you loss the toss')
else:
    print('coin is Tails')
    if toss_input == 'Tails':
        print('Heads\nyou won the toss')
    else:
        print('you loss the toss')

<mask token>
random_number_integer = random.randint(0, 1)
HEADS = 1
TAILS = 0
print(random_number_integer)
toss_input = input("what you want 'HEADS OR TAILS'\n").upper()
if random_number_integer == HEADS:
    print('coin is on head')
    if toss_input == 'HEADS':
        print('HEADS\nyou won the toss')
    else:
        print('you loss the toss')
else:
    print('coin is Tails')
    if toss_input == 'Tails':
        print('Heads\nyou won the toss')
    else:
        print('you loss the toss')

import random
random_number_integer = random.randint(0, 1)
HEADS = 1
TAILS = 0
print(random_number_integer)
toss_input = input("what you want 'HEADS OR TAILS'\n").upper()
if random_number_integer == HEADS:
    print('coin is on head')
    if toss_input == 'HEADS':
        print('HEADS\nyou won the toss')
    else:
        print('you loss the toss')
else:
    print('coin is Tails')
    if toss_input == 'Tails':
        print('Heads\nyou won the toss')
    else:
        print('you loss the toss')

import random

random_number_integer  =  random.randint(0,1)
HEADS = 1
TAILS = 0

print(random_number_integer)

toss_input= input("what you want 'HEADS OR TAILS'\n").upper()

if random_number_integer == HEADS:
    print("coin is on head")
    if toss_input == "HEADS":
        print("HEADS\nyou won the toss")
    else:
        print("you loss the toss")

else:
    print("coin is Tails")
    if toss_input == "Tails":
        print("Heads\nyou won the toss")
    else:
        print("you loss the toss")