إهداء للأستاذ Ibrahim

from turtle import Turtle,Screen
import random
sam=Turtle()
bam=Turtle ()
tam=Turtle()
lam=Turtle()
ram=Turtle()
ham=Turtle ()
fam=Turtle ()
dam=Turtle ()
gam=Turtle ()
jam=Turtle ()
yam=Turtle ()
kam=Turtle ()
kam_1=Turtle()
window=Screen()
def letter_I():
sam.color(“black”)
sam.shape(“square”)
sam.shapesize(stretch_wid=5, stretch_len=1)
sam.penup()
sam.goto(-350,0)
def point ():
bam.color(“black”)
bam.shape(“square”)
bam.penup()
bam.goto(-350,65)
def letter_b():
tam.color(“black”)
tam.shape(“square”)
tam.shapesize(stretch_wid=5, stretch_len=1)
tam.penup()
tam.goto(-315,0)
def letter_b2():

lam.color("black")
lam.shape("circle")

lam.pensize(10)
lam.shapesize(stretch_wid=3,stretch_len=3)
lam.penup()
lam.goto(-296,-20)

def letter_r():

ram.color("black")
ram.shape("square")

ram.shapesize(stretch_wid=5,            stretch_len=1)
ram.penup()
ram.goto(-240,0)

def letter_r2():

ham.color("black")

ham.shape("circle")
ham.penup()
ham.shapesize(3,3)
ham.goto(-220,20)

def letter_f():

fam.color("black")
fam.shape("square")

fam.shapesize(stretch_wid=5,            stretch_len=1)
fam.penup()
fam.left(25)
fam.goto(-214,0)

def letter_a():
dam.color(“black”)
dam.shape(“square”)

 dam.shapesize(stretch_wid=5,            stretch_len=1)
 dam.penup()
 dam.left(-25)

 dam.goto(-150,0)

def letter5():
gam.color(“black”)

 gam.shape("square")
 gam.shapesize(stretch_wid=5,            stretch_len=1)
 gam.penup()
 gam.left(25)

 gam.goto(-102,0)

def letter6():
jam.color(“black”)
jam.shape(“square”)
jam.shapesize(stretch_wid=1, stretch_len=3)
jam.penup()

 jam.goto(-127,5)

zam=Turtle ()
def letter_h1():
zam.color(“black”)
zam.shape(“square”)
zam.shapesize(stretch_wid=5, stretch_len=1)
zam.penup()

 zam.goto(-60,0)

cam=Turtle ()
def letter_h2():
cam.color(“black”)
cam.shape(“square”)
cam.shapesize(stretch_wid=5, stretch_len=1)
cam.penup()

 cam.goto(-20,0)

vam=Turtle()
def letter_h3():
vam.color(“black”)
vam.shape(“square”)
vam.shapesize(stretch_wid=1, stretch_len=2)
vam.penup()
vam.goto(-30,5)
def letter_I2():
yam.color(“black”)
yam.shape(“square”)
yam.shapesize(stretch_wid=5, stretch_len=1)
yam.penup()
yam.goto(5,0)
oam=Turtle ()
def point1 ():
oam.color(“black”)
oam.shape(“square”)
oam.penup()
oam.goto(5,65)
def letter_m1():
kam.color(“black”)
kam.shape(“square”)
kam.shapesize(stretch_wid=5, stretch_len=1)
kam.penup()
kam.goto(35,0)

def letter_m2():
kam_1.color(“black”)
kam_1.shape(“square”)
kam_1.shapesize(stretch_wid=5, stretch_len=1)
kam_1.penup()
kam_1.goto(120,0)
wam=Turtle ()
def letter_m3():
wam.color(“black”)
wam.shape(“square”)
wam.shapesize(stretch_wid=5, stretch_len=1)
wam.penup()
wam.left(25)

 wam.goto(60,12)   

pam=Turtle ()
def letter_m4():
pam.color(“black”)
pam.shape(“square”)
pam.shapesize(stretch_wid=5, stretch_len=1)
pam.penup()
pam.left(-25)

 pam.goto(100,12)        

letter_I()
point()
letter_b()
letter_b2()
letter_r()
letter_r2()
letter_f()
letter_a()
letter5()
letter6()
letter_h1()
letter_h2()
letter_h3()
letter_I2()
point1()
letter_m1()
letter_m2()
letter_m3()
letter_m4()

window.exitonclick()

3 إعجابات

الفكرة والكود جميل احسنت العمل
جهد مبذول ماشاء الله

بس اخي لو ترسل الكود المرة القادمة بشكل منسق حتى يسهل على الجميع تجربته

4 إعجابات

الكود بشكل منسق لمن يريد تجربته

from turtle import Turtle,Screen
import random
sam=Turtle()
bam=Turtle ()
tam=Turtle()
lam=Turtle()
ram=Turtle()
ham=Turtle ()
fam=Turtle ()
dam=Turtle ()
gam=Turtle ()
jam=Turtle ()
yam=Turtle ()
kam=Turtle ()
kam_1=Turtle()
window=Screen()
def letter_I():
    sam.color("black")
    sam.shape("square")
    sam.shapesize(stretch_wid=5, stretch_len=1)
    sam.penup()
    sam.goto(-350,0)
def point ():
    bam.color("black")
    bam.shape("square")
    bam.penup()
    bam.goto(-350,65)
def letter_b():
    tam.color("black")
    tam.shape("square")
    tam.shapesize(stretch_wid=5, stretch_len=1)
    tam.penup()
    tam.goto(-315,0)
def letter_b2():

    lam.color("black")
    lam.shape("circle")

    lam.pensize(10)
    lam.shapesize(stretch_wid=3,stretch_len=3)
    lam.penup()
    lam.goto(-296,-20)
def letter_r():

    ram.color("black")
    ram.shape("square")

    ram.shapesize(stretch_wid=5,stretch_len=1)
    ram.penup()
    ram.goto(-240,0)
def letter_r2():

    ham.color("black")

    ham.shape("circle")
    ham.penup()
    ham.shapesize(3,3)
    ham.goto(-220,20)
def letter_f():

    fam.color("black")
    fam.shape("square")

    fam.shapesize(stretch_wid=5,stretch_len=1)
    fam.penup()
    fam.left(25)
    fam.goto(-214,0)
def letter_a():
    dam.color("black")
    dam.shape("square")

    dam.shapesize(stretch_wid=5,stretch_len=1)
    dam.penup()
    dam.left(-25)

    dam.goto(-150,0)
def letter5():
    gam.color("black")

    gam.shape("square")
    gam.shapesize(stretch_wid=5,stretch_len=1)
    gam.penup()
    gam.left(25)

    gam.goto(-102,0)
def letter6():
    jam.color("black")
    jam.shape("square")
    jam.shapesize(stretch_wid=1, stretch_len=3)
    jam.penup()

    jam.goto(-127,5)
def letter_h1():
    zam=Turtle ()
    zam.color("black")
    zam.shape("square")
    zam.shapesize(stretch_wid=5, stretch_len=1)
    zam.penup()

    zam.goto(-60,0)
def letter_h2():
    cam=Turtle ()
    cam.color("black")
    cam.shape("square")
    cam.shapesize(stretch_wid=5, stretch_len=1)
    cam.penup()

    cam.goto(-20,0)
def letter_h3():
    vam=Turtle()
    vam.color("black")
    vam.shape("square")
    vam.shapesize(stretch_wid=1, stretch_len=2)
    vam.penup()
    vam.goto(-30,5)
def letter_I2():
    yam.color("black")
    yam.shape("square")
    yam.shapesize(stretch_wid=5, stretch_len=1)
    yam.penup()
    yam.goto(5,0)
def point1 ():
    oam=Turtle ()
    oam.color("black")
    oam.shape("square")
    oam.penup()
    oam.goto(5,65)
def letter_m1():
    kam.color("black")
    kam.shape("square")
    kam.shapesize(stretch_wid=5, stretch_len=1)
    kam.penup()
    kam.goto(35,0)

def letter_m2():
    kam_1.color("black")
    kam_1.shape("square")
    kam_1.shapesize(stretch_wid=5, stretch_len=1)
    kam_1.penup()
    kam_1.goto(120,0)
def letter_m3():
    wam=Turtle ()
    wam.color("black")
    wam.shape("square")
    wam.shapesize(stretch_wid=5, stretch_len=1)
    wam.penup()
    wam.left(25)

    wam.goto(60,12)   
def letter_m4():
    pam=Turtle ()
    pam.color("black")
    pam.shape("square")
    pam.shapesize(stretch_wid=5, stretch_len=1)
    pam.penup()
    pam.left(-25)

    pam.goto(100,12)        
letter_I()
point()
letter_b()
letter_b2()
letter_r()
letter_r2()
letter_f()
letter_a()
letter5()
letter6()
letter_h1()
letter_h2()
letter_h3()
letter_I2()
point1()
letter_m1()
letter_m2()
letter_m3()
letter_m4()

window.exitonclick()```
3 إعجابات

هذه الفترة اعمل على الهاتف ولست متمكنا من العمل على التطبيق pydroid 3

إعجابَين (2)