Turtle: vierkant met kleur naar keuze
Sign in to test your solution.
import turtle
turtle.color("red")
# NU WORDT ROOD GEKOZEN, MAAR VRAAG GEBRUIKER OM EEN KLEUR
# PRINT OP HET SCHERM WELKE KLEUR DE GEBRUIKER GEKOZEN HEEFT
print("Je krijgt een .... vierkant.")
turtle.pendown()
turtle.begin_fill()
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.end_fill()
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