head and tails coin flip code example Example: coinflip import random random.choice('Heads', 'Tails')