- This event has passed.
9 PM – Intro To Python – Indo – Joel
August 23, 2024 @ 9:00 pm - 10:00 pm
Gamas Sub
Today We Did
- We fixed a lot of codes in dominic_final_project.py
- We removed a lot of code duplications.
- We consolidate penguin functions into one whole_penguin function.
- We went over the aug_15_robux_shopping_cart.py
Homework
- Finish dominic_final_project.py by Aug 24 morning. After you upload the file, ask your mom to WhatsApp Mr. Gamas Chang.
- Continue on aug_15_robux_shopping_cart.py. Change the program so you will have initial “robux_amount” which is 300. And everytime you purchase an item, deduct the “robux_amount”.And also after user exit, print out all items you purchased and the remaining robux.
-
Welcome to Robux Bank, you have 300 robux in the beginning. What do you want to do: 1. Buy hat 100 Robux 2. Buy hair 150 Robux 3. VIP Server 500 Robux 4. Add more Robux 5. Exit Enter your selection: 1 You purchased a Hat. You have 200 robux remaining. What do you want to do: 1. Buy hat 100 Robux 2. Buy hair 150 Robux 3. VIP Server 500 Robux 4. Add more Robux 5. Exit Enter your selection: 2 You purchased a Hair. You have 50 robux remaining. What do you want to do: 1. Buy hat 100 Robux 2. Buy hair 150 Robux 3. VIP Server 500 Robux 4. Add more Robux 5. Exit Enter your selection: 3 You only have 50 robux remaining. Therefore you cannot purchase VIP Server for 500 robux. What do you want to do: 1. Buy hat 100 Robux 2. Buy hair 150 Robux 3. VIP Server 500 Robux 4. Add more Robux 5. Exit Enter your selection: 5 You have purchased the following items: 1. Hat 2. Hair Your remaining Robux balance is 50 Robux.
-