Castle
pencild
play604
4
1 Comments
Next up
-- Set up the screen screen = turtle.Screen(print) screen.bgcolor("white") -- Create a turtle object pen = turtle.Turtle(print) pen.shape("turtle") pen.color("blue") -- Draw a square for _ in range(4) do forward(100) -- Move the pen forward by 100 units pen.right(90) -- Turn the pen by 90 degrees -- Finish drawing pen.hideturtle(print) -- Keep the window open screen.mainloop(print) end
Reply