Tekenprogramma
Sign in to test your solution.
import turtle
def tekenCirkel():
turtle.circle(50)
def tekenDriehoek():
turtle.forward(100)
turtle.right(120)
turtle.forward(100)
turtle.right(120)
turtle.forward(100)
turtle.right(120)
def tekenVierkant():
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
### HOOFDPROGRAMMA
print("Wat wil je tekenen: cirkel, vierkant, driehoek of allemaal?")
keuze = input()
# roep de juiste functie(s) aan op basis van de keuze
turtle.done()
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