# Import turtle package import turtle



Download 10,77 Kb.
Sana23.05.2022
Hajmi10,77 Kb.
#607071
Bog'liq
Yurak


# Import turtle package
import turtle

# Creating a turtle object(pen)


pen = turtle.Turtle()

# Defining a method to draw curve


def curve():
for i in range(200):

# Defining step by step curve motion


pen.right(1)
pen.forward(1)

# Defining method to draw a full heart


def heart():

# Set the fill color to red


pen.fillcolor('red')

# Start filling the color


pen.begin_fill()

# Draw the left line


pen.left(140)
pen.forward(113)

# Draw the left curve


curve()
pen.left(120)

# Draw the right curve


curve()

# Draw the right line


pen.forward(112)

# Ending the filling of the color


pen.end_fill()

# Defining method to write text


def txt():

# Move turtle to air


pen.up()

# Move turtle to a given position


pen.setpos(-68, 95)

# Move the turtle to the ground


pen.down()

# Set the text color to lightgreen


pen.color('lightgreen')

# Write the specified text in


# specified font style and size
pen.write("Dilfuza", font=(
"Verdana", 12, "bold"))
# Draw a heart
heart()

# Write text


txt()

# To hide turtle


pen.ht()
Download 10,77 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish