@EdgarArcia/

Python Turtle Assignment

Python (with Turtle)

No description

fork
loading
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import turtle
wn=turtle.Screen()
wn.bgcolor('light blue')
sun=turtle.Turtle()
sun.speed(10)
sun.pensize(18)
sun.penup()
sun.left(45)
sun.forward(150)
sun.left(30)
sun.pendown()
for i in ['Yellow','Orange']:
  sun.color(i)
  sun.circle(90)
  sun.left(90)
  sun.forward(5)
  sun.right(90)
umbrella=turtle.Turtle()
umbrella.pensize(16)
umbrella.color('red')
umbrella.penup()
umbrella.right(90)
umbrella.forward(200)
umbrella.right(135)
umbrella.pendown()
umbrella.forward(175)
result
console