from math import *
from turtle import *
def hearta(K):
return 15*math.sin(K)**3
def heartb(K):
return 12math.cos(K)-5
math.cos(2K)-2
math.cos(3K)-
math.cos(4K)
speed(1000)
bgcolor(“black”)
K = 1
for i in range(6000):
goto(hearta(K)*20,heartb(K)*20)
for j in range(5):
color(“#f73487”)
done()
ماهو التعديل الصحيح لهذا الكود
بحثت في git hub و جوجل عشان افهم انا غلط فين بس مش عارف
from turtle import *
def hearta(K):
return 15*math.sin(K)**3
def heartb(K):
return 12math.cos(K)-5
math.cos(2K)-2
math.cos(3K)-
math.cos(4K)
speed(1000)
bgcolor(“black”)
K = 1
for i in range(6000):
goto(hearta(K)*20,heartb(K)*20)
for j in range(5):
color(“#f73487”)
done()
ماهو التعديل الصحيح لهذا الكود
بحثت في git hub و جوجل عشان افهم انا غلط فين بس مش عارف
- لسه بتعلم لغه بايثون
التعديل الأخير: