File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ import turtle
2+
3+ def draw_K (k ):
4+ k .left (90 )
5+ k .forward (70.72 )
6+ k .goto (0 , 0 )
7+ k .right (45 )
8+ k .forward (100 )
9+ k .goto (0 , 0 )
10+ k .right (90 )
11+ k .forward (100 )
12+ k .goto (0 ,0 )
13+ k .right (45 )
14+ k .forward (70.72 )
15+ k .goto (0 ,0 )
16+
17+
18+ def draw_C (c ):
19+ c .pu ()
20+ c .setx (70.72 + 35.36 )
21+ c .sety (70.72 )
22+ c .pd ()
23+ c .left (90 )
24+ c .forward (70.72 )
25+ c .goto (70.72 + 35.36 , 70.72 )
26+ c .right (90 )
27+ c .forward (70.72 * 2 )
28+ c .left (90 )
29+ c .forward (70.72 )
30+
31+
32+ def Turtle_Mini_Project_KC ():
33+ window = turtle .Screen ()
34+ window .bgcolor ("white" )
35+ brad = turtle .Turtle ()
36+ brad .shape ("turtle" )
37+ brad .color ("blue" )
38+ brad .speed (1 )
39+
40+ draw_K (brad )
41+ draw_C (brad )
42+
43+ window .exitonclick ()
44+
45+
46+ Turtle_Mini_Project_KC ()
You can’t perform that action at this time.
0 commit comments