American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

6PM – Intro To Python – Bill

June 4, 2022 @ 6:00 pm - 7:00 pm

Today We:
  1. Started the Shopping Cart system project
  2. Learned how to create a large multi-line menu string variable
  3. Created the main loop
  4. Asked the user what option they want to select
  5. Made it so when the user enters the exit option, the loop is exited
  6. Learned about how to make sure the user enters something expected (elif user_input not in options:)
  7. Created a list of options variable
Your HW:
  1. Make a new variable called “total_cost”
  2. Make it so when the user exits, the total cost is printed like this:
    “Thank you for shopping, your total comes out to <total_cost>”

 

Details

Date:
June 4, 2022
Time:
6:00 pm - 7:00 pm
Verified by MonsterInsights