@4pip/

tekenen in python

Python (with Turtle)

tekenen in python

fork
loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.0033364910267594805","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"ZnJvbSB0dXJ0bGUgaW1wb3J0ICoKCiN0ZWtlbmVuCnNwZWVkICgxMCkKcGVuc2l6ZSAoMSkKCmNvbG9yICgncmVkJykgI2VlcnN0IGVlbiByb29kIHZpZXJrYW50CmZvciBpIGluIHJhbmdlICg0KToKICAgIGZvcndhcmQoMTAwKQogICAgbGVmdCg5MCkKCmNvbG9yICgnZ3JlZW4nKSAjZ3JvZW5lIHJhbmQgMzYwIGdlZGVlbGQgZG9vciA1CmZvciBpIGluIHJhbmdlICg3KToKICAgIGZvcndhcmQoMTAwKQogICAgbGVmdCgzNjAvNSkKCmNvbG9yICgnYmx1ZScpICNibGF1d2UgcmFuZCAzNjAgZ2VkZWVsZCBkb29yIDYKZm9yIGkgaW4gcmFuZ2UgKDYpOgogICAgZm9yd2FyZCgxMDApCiAgICBsZWZ0KDM2MC82KQoKY29sb3IgKCdwaW5rJykgI3JvemUgcmFuZCAzNjAgZ2VkZWVsZCBkb29yIDcKZm9yIGkgaW4gcmFuZ2UgKDcpOgogICAgZm9yd2FyZCgxMDApCiAgICBsZWZ0KDM2MC83KQoKY29sb3IgKCdncmV5JykgI2dyaWp6ZSByYW5kIDM2MCBnZWRlZWxkIGRvb3IgOApmb3IgaSBpbiByYW5nZSAoOCk6CiAgICBmb3J3YXJkKDEwMCkKICAgIGxlZnQoMzYwLzgpCgpjb2xvciAoJ3B1cnBsZScpICNwYWFyc2UgcmFuZCAzNjAgZ2VkZWVsZCBkb29yIDkKZm9yIGkgaW4gcmFuZ2UgKDkpOgogICAgZm9yd2FyZCgxMDApCiAgICBsZWZ0KDM2MC85KQoKY29sb3IgKCdicm93bicpICNicnVpbmUgcmFuZCAzNjAgZ2VkZWVsZCBkb29yIDEwCmZvciBpIGluIHJhbmdlICgxMCk6CiAgICBmb3J3YXJkKDEwMCkKICAgIGxlZnQoMzYwLzEwKQoKY29sb3IgKCdnb2xkJykgI2dvdWRlIHJhbmQgMzYwIGdlZGVlbGQgZG9vciAxMQpmb3IgaSBpbiByYW5nZSAoMTEpOgogICAgZm9yd2FyZCgxMDApCiAgICBsZWZ0KDM2MC8xMSkKCmNvbG9yICgnY3lhbicpICN6ZWVncm9lbmUgcmFuZCAzNjAgZ2VkZWVsZCBkb29yIDEyCmZvciBpIGluIHJhbmdlICgxMik6CiAgICBmb3J3YXJkKDEwMCkKICAgIGxlZnQoMzYwLzEyKQo="},"asBuffer":null},"loaded":true}}
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
from turtle import *

#tekenen
speed (10)
pensize (1)

color ('red') #eerst een rood vierkant
for i in range (4):
    forward(100)
    left(90)

color ('green') #groene rand 360 gedeeld door 5
for i in range (7):
    forward(100)
    left(360/5)

color ('blue') #blauwe rand 360 gedeeld door 6
for i in range (6):
    forward(100)
    left(360/6)

color ('pink') #roze rand 360 gedeeld door 7
for i in range (7):
    forward(100)
    left(360/7)

color ('grey') #grijze rand 360 gedeeld door 8
for i in range (8):
    forward(100)
    left(360/8)

color ('purple') #paarse rand 360 gedeeld door 9
for i in range (9):
    forward(100)
    left(360/9)

color ('brown') #bruine rand 360 gedeeld door 10
for i in range (10):
    forward(100)
    left(360/10)

color ('gold') #goude rand 360 gedeeld door 11
for i in range (11):
    forward(100)
    left(360/11)

color ('cyan') #zeegroene rand 360 gedeeld door 12
for i in range (12):
    forward(100)
    left(360/12)
result
console