« All Events
6 PM – Indo – Intro to Python – Joel
September 22, 2023 @ 5:00 pm - 6:00 pm
Homework:
- Continue in the RobuxShoppingCart.py file. Create a new condition for the 2nd option. If the user chooses 2 from the menu, then the code will check if the user has enough Robux, and if the user does not, then it will print the same thing as the elif selection == “1” part where robux < 100. If the user does have enough, then the user should be able to buy the hair, and pay for it. It should also have the print statement, something like “You have purchased a hat. You have {robux} robux remaining”.
- If you have any questions, feel free to email me at joel@ayclogic.com.