Skip to content

Commit a22f316

Browse files
authored
Update and rename task6.py to 360_circle.py
1 parent 121076a commit a22f316

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

360_circle.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import turtle
2+
import random
3+
#making a colored circle in a loop
4+
#the angle the circle is drawn from changes everytime making a 3d looking cylindrical shape
5+
angle=10
6+
colors = ["blue", "red", "orange", "pink", "purple", "yellow", "cyan", "light blue", "brown", "light green" ]
7+
circle = turtle.Turtle()
8+
for i in range (0,90):
9+
circle.color(random.choice(colors))
10+
circle.circle(radius=40)
11+
circle.left(angle)
12+
13+
turtle.done()

task6.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)