Castle

Sign in to test your solution.
# Castle program # ------------------------- # Import libraries # ------------------------- import turtle # ------------------------- # Subprograms # ------------------------- def draw_merlon(): def draw_tower(merlons): # ------------------------- # Main program # ------------------------- turtle.left(90) turtle.pensize(4) draw_tower(4) turtle.hideturtle() turtle.done()

  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