• 25-qism
  • 27-qism
  • Dasturga Muqaddima 1-bosqich




    Download 5.67 Mb.
    bet10/31
    Sana22.10.2022
    Hajmi5.67 Mb.
    #27828
    1   ...   6   7   8   9   10   11   12   13   ...   31
    Bog'liq
    Uzb coders qollanma
    TITUL 2 (3)

    23-qism


    1-savol
    metod chaqiruvlarini ular qildiradigan amallar bilan moslashtiring.

    Izoh: Turn left by 100 degrees. – chapga 100 gradusga buriladi.
    Back up 100 pixels. – orqaga 100 piksel yuradi.
    Change the color. – rangni o‘zgartiradi.
    Go forward 100 pixels. - oldinga 100 piksel yuradi.
    2-savol
    Mana yangi o‘rganganlaringizdan.
    Va yana, metod chaqiruvlarini ular qildiradigan amallar bilan moslashtiring.

    Izoh: Change how thick the line is. – Chiziq qalinligini belgilaydi
    Draw as fast as possible. – Imkom qadar tez chizadi
    Stop drawing. – Chizishni to‘xtatish
    Start drawing. – Chizishni boshlash
    3-savol

    4-savol

    5-savol

    6-savol

    7-savol

    8-savol

    9-savol

    10-savol

    25-qism


    1-savol
    amy.color(prettycolor) for sikl ichida bo‘lishi kerakmi, bu kabi:
    for line in [1, 2, 3]:

    amy.color(prettycolor)
    amy.forward(50)
    amy.penup()
    amy.forward(50)
    amy.pendown()
    Yoki tashqarisida bo‘lishi kerakmi, bu kabi:
    amy.color(prettycolor)


    for line in [1, 2, 3]:
    amy.forward(50)
    amy.penup()
    amy.forward(50)
    amy.pendown()

    Izoh: sikl ichida rang o‘zgarishi uchun rangni sozlash sikl ichida bo‘lishi kerak, aks holda rang o‘zgarmaydi.

    27-qism


    1-savol
    Masalan, agar men sakkizburchak yasamoqchi bo‘lsam 🛑 va bu kodni yozsam —

    Download 5.67 Mb.
    1   ...   6   7   8   9   10   11   12   13   ...   31




    Download 5.67 Mb.

    Bosh sahifa
    Aloqalar

        Bosh sahifa



    Dasturga Muqaddima 1-bosqich

    Download 5.67 Mb.