from turtle import *
def arcodes(dist,angolo):
for i in range(angolo):
fd(dist)
rt(1)
def arcosin(dist,angolo):
for i in range(angolo):
fd(dist)
left(1)
def petalo(dist):
arcodes(dist,60)
rt(120)
arcodes(dist,60)
rt(120)
def fiore(dist):
for i in range(6):
petalo(dist)
rt(60)
def petalo5(dist):
arcodes(dist,72)
rt(108)
arcodes(dist,72)
rt(108)
def fiore5(dist):
for i in range(5):
petalo(dist)
rt(72)
def raggio(dist):
for i in range(2):
arcodes(dist,90)
arcosin(dist,90)
def sole(dist):
for i in range(9):
raggio(dist)
rt(160)
def cerchi():
for i in range(10):
arcodes(1,360)
rt(36)
hideturtle()
speed(0)
pencolor('red')
#sole(1)
#cerchi()
#fiore5(2)
fiore5(4)
#arcodes(2,72)
#rt(108)
#arcodes(2,72)
mainloop()