American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

10 AM – Intro To Python – Gamas

March 14 @ 10:00 am - 11:00 am

Today We Did
  1. We continued with feb_28_supermarket.py
  2. We Added the menu and forever loop and if statements to handle the menu selection.
Homework

Continue with feb_28_supermarket.py

  1. After user enter “exit”, display how much they have to pay. “Thank you for your purchases. Please pay ${cost}.”
  2. You need to keep track of items that they purchase so when they exit, you can list the items that they have purchase. For example, if they enter 1 and then 2 and then 2 then after they enter “exit”, then your program needs to display
    1. You have purchased the following items
      Chocolate
      Muffin
      Muffin
      
      Thank you for your purchase. Please pay $11.

Details

Date:
March 14
Time:
10:00 am - 11:00 am