user
Write a computer program to predict the probability of a coin tossing event. Output:
assistant
import random

def predict_coin():
    if random.random() > 0.5:
        return "Heads"
    else:
        return "Tails"