import random rand = random.randint(1, 2) if rand == 1: print("Heads") else: print("Tails")