main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import turtle
turtle.speed(0)
def oldal( h, f):
	turtle.left(f)
	turtle.forward(h)
	turtle.right(2 * f)
	turtle.forward(h)
	turtle.left(f)
def csillag(h,f,s):
 tortsok(h,f, s,0)
def tortsok(h,f,s,szog):
	oldal(h,f)
	turtle.left(s)
	if (s+szog) % 360 != 0 :
		tortsok(h,f,s,s+szog)
#oldal(100,30)
#csillag(100,0,144)
csillag(100,30,90)

result
console