Drop links or images here to add them to the editor.

Schrijf een programma dat een munt opgooit:

  1. Schrijf een functie gooiMunt() die willekeurig "KOP" of "MUNT" retourneert.
    • Gebruik random.randint(0, 1): bij 0"KOP", anders → "MUNT".
  2. Roep gooiMunt() aan vanuit het hoofdprogramma.
  3. Druk het resultaat af als: De munt landt op: KOP (of MUNT).