« All Events
3 PM – Intro To Python – Angelos – Gamas
September 9, 2023 @ 3:00 pm - 4:00 pm
Homework
- Inside angelos_basketball_project.py, finish all the functions
- draw_letter_b(x,y,color)
- draw_letter_a(x,y,color)
- draw_letter_s(x,y,color)
- draw_letter_k(x,y,color)
- draw_letter_e(x,y,color)
- draw_letter_t(x,y,color)
- draw_letter_l(x,y,color)
- And draw the word BASKETBALL continuously changing its color.
- Create a file sep9_draw_face2_hw.py
- Copy rectangle function
- Copy draw_circle function
- Create a new function draw_face2(x,y,color)
- When I call draw_face2 function twice with different coordinate, it will draw face twice like below
- 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
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