« All Events
5 PM – Intro To Python – Gamas
December 18, 2024 @ 8:00 am - 5:00 pm
Today We Did
- We continued on Robux shopping cart
- We went over solution to last week nov_20_turtle_green_grapes_hw.py
- We went over how to create magic_8_ball program
Homework
- Finish dec_11_robux_shopping_cart.py. by adding codes to do the “4. Add more robux”
You have 300 robux ramaining.
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
Enter your selection 1 to 3 (Enter 'exit' for quit): 1
You have purchased hat for 100 Robux. You have 200 robux remaining
You have 200 robux ramaining.
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
Enter your selection 1 to 3 (Enter 'exit' for quit): 3
You don't have enough robux. You only have 200 robux remaining.
You have 200 robux ramaining.
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
Enter your selection 1 to 3 (Enter 'exit' for quit): 4
How much robux you want to add: 1000
You now have 1200 robux.
You have 1200 robux ramaining.
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
Enter your selection 1 to 3 (Enter 'exit' for quit):
- Create dec_18_magic_8_ball.py. Make sure the program can answer either Yes, No or Maybe
Enter your question? Is it dark outside?
No
Enter your question? Is it cold outside?
No
Enter your question? Did Alyssa go to Italy during Christmas?
Yes
Enter your question? Did Jayden go to Singapore during New Year?
Maybe
Enter your question?