Sign in to test your solution.
# Vacuum cleaner program # ------------------------- # Import libraries # ------------------------- import turtle turtle.setup(400, 450) # ------------------------- # Subprograms # ------------------------- # Initialise def reset(): turtle.pensize(10) turtle.left(90) # Navigate room def vacuum(): turtle.forward(20) turtle.right(90) turtle.forward(100) # ------------------------- # Main program # ------------------------- reset() vacuum() 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