« All Events
5 PM – Intro To Python – Gamas
February 28, 2023 @ 5:00 pm - 6:00 pm
Homework
- For those who are not done with the Turtle project, please continue with it. It is due on March 14. You can get 10% bonus if you submit by March 7.
- Inside Feb14_GroceryShoppingCart.py, change the code to be smaller. Use function to remove code duplication. Inside the function, in the first line inside the function, you need to put the following line global total_price to avoid python complaining about total_price variable.
- Inside Feb28_RobuxShoppingCart.py, add code to make sure user cannot buy when they don’t have enough robux. Your program should print similar to this one: You only have 0 robux remaining. Therefore you cannot purchase Hat for 100 robux.