Overstappen
Sign in to test your solution.
from random import randint
# De bus komt 1 tot 5 minuten na het uur aan de bushalte toe.
def aankomstuur_bus():
return randint(1, 5)
# De trein vertrekt 10 (30% kans), 11 (20% kans) of 12 (50% kans) minuten na het uur.
def vertrekuur_trein():
...
# Wat is de kans dat je probleemloos kan overstappen?
def experiment():
#...
return #...
# Om te testen in de sandbox verwijder je onderstaande hashtag. Je zet deze weer terug wanneer je indient.
# print(experiment())
You can submit as many times as you like. Only your latest submission will be taken into account.
Sign in to test your solution.
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