Drop hier links of afbeeldingen om ze aan de editor toe te voegen.

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).