Getting Started with Time2Code on Dodona

Sign in to test your solution.
import random def flip_coin(): # generate outcome of flipping an unbiased coin return random.choice(['heads', 'tails'])