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'])

  Python sandbox

This window allows you to run Python code without installing a thing. The code you write here is not automatically submitted to Dodona.

Test case being debugged