American Young Coder Academy – Indo

Loading Events

« All Events

  • This event has passed.

3 PM – Intro To Python – Angelos – Gamas

September 9, 2023 @ 3:00 pm - 4:00 pm

Homework
  1. Inside angelos_basketball_project.py, finish all the functions
    1. draw_letter_b(x,y,color)
    2. draw_letter_a(x,y,color)
    3. draw_letter_s(x,y,color)
    4. draw_letter_k(x,y,color)
    5. draw_letter_e(x,y,color)
    6. draw_letter_t(x,y,color)
    7. draw_letter_l(x,y,color)
    8. And draw the word BASKETBALL continuously changing its color.
  2. Create a file sep9_draw_face2_hw.py
    1. Copy rectangle function
    2. Copy draw_circle function
    3. Create a new function draw_face2(x,y,color)
    4. When I call draw_face2 function twice with different coordinate, it will draw face twice like below
  3. Inside sep_9_grocerry_shopping_cart.py, After user enter “exit”, list out all the items that the user purchase, one item per row. To do this, you have to use for loop to go through each element inside the list. For example
  4. Welcome to AYC Logic Supermarket
    
    
    What do you want to purchase:
    1. Milk - $5
    2. Eggs - $4
    3. Orange Juice - $6
    4. Muffin - $4
    Enter your selection 1 to 4 (Enter 'exit' for check out): 1
    You purchase Milk for $5
    
    What do you want to purchase:
    1. Milk - $5
    2. Eggs - $4
    3. Orange Juice - $6
    4. Muffin - $4
    Enter your selection 1 to 4 (Enter 'exit' for check out): 1
    You purchase Milk for $5
    
    What do you want to purchase:
    1. Milk - $5
    2. Eggs - $4
    3. Orange Juice - $6
    4. Muffin - $4
    Enter your selection 1 to 4 (Enter 'exit' for check out): 2
    You purchase Egg for $4
    
    What do you want to purchase:
    1. Milk - $5
    2. Eggs - $4
    3. Orange Juice - $6
    4. Muffin - $4
    Enter your selection 1 to 4 (Enter 'exit' for check out): exit
    You have to pay $14
    
    You have bought these items: 
    Milk
    Milk
    Egg

Details

Date:
September 9, 2023
Time:
3:00 pm - 4:00 pm
Verified by MonsterInsights