Skip to content

Commit b1d00a1

Browse files
author
codehouseindia
authored
Merge pull request codehouseindia#227 from TANISHA3665/patch-3
Create draw_snowflake.py
2 parents 364d97a + 8c800b1 commit b1d00a1

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

draw_snowflake.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from turtle import Turtle
2+
t = Turtle()
3+
t.speed(0)
4+
#a = 180
5+
b = 180
6+
for c in range(5):
7+
a = 9*c
8+
for i in range(100):
9+
t.circle(i, a)
10+
t.right(b)
11+
t.circle(i, a)
12+
t.right(b)
13+
t.circle(i, a)
14+
t.right(b)
15+
t.circle(i, a)
16+
input('Press any key to continue...')

0 commit comments

Comments
 (0)