r/pythonhelp • u/SDG2008 • Dec 20 '21
HOMEWORK Can somebody run this code on python mu?
from turtle import *
setup(800, 500)
speed(0)
# Sky
bgcolor("lightskyblue")
# Water
penup()
goto(-400, -150)
pendown()
color("mediumblue")
begin_fill()
for i in range(2):
forward(800)
right(90)
forward(100)
right(90)
end_fill()
# Boat
penup()
goto(-200, -80)
pendown()
color("saddlebrown")
begin_fill()
right(45)
forward(100)
left(45)
forward(250)
left(45)
forward(100)
end_fill()
# Mast
penup()
goto(0, -80)
pendown()
color("black")
begin_fill()
left(45)
for i in range(2):
forward(200)
left(90)
forward(10)
left(90)
end_fill()
0
Upvotes
1
u/[deleted] Dec 23 '21
mu is an editor, not Python, so "run this code on python mu" does not make any sense.
I would be happy to check the code for you, but please edit your post and format the code correctly first, as per the wiki (link in sidebar).