How to make a beautiful Heart using python code? #Python_heart_code

preview_player
Показать описание
Code:
import math
from turtle import *

def heart(k):

def heart1(k):

speed(1000)
bgcolor('black')
for i in range(6000):
goto(heart(i)*20,heart1(i)*20)
for j in range(5):
color('pink')

done()
#pythonturtle #codingtechnique #100pythonpracticecode
Рекомендации по теме
Комментарии
Автор

I’m a beginner can please tell what are the first steps

sidranati
Автор

Can you help me solve the problem of Termelan? I have a problem with it

pgoghsl
Автор

says wildcard import from a library not allowed 😖

ATHEER
Автор

Its not working for me it does shows a small heart

Cell.