- This event has passed.
6PM – Intro To Python – Bill
June 4, 2022 @ 6:00 pm - 7:00 pm
Today We:
- Started the Shopping Cart system project
- Learned how to create a large multi-line menu string variable
- Created the main loop
- Asked the user what option they want to select
- Made it so when the user enters the exit option, the loop is exited
- Learned about how to make sure the user enters something expected (elif user_input not in options:)
- Created a list of options variable
Your HW:
- Make a new variable called “total_cost”
- 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>”