- This event has passed.
3 PM – Intro To Python (Summer Session) – Darin
July 9 @ 3:00 pm - 5:00 pm
What We Did Today:
- Reviewed the homework on making a functions to draw a shape consisting of other shapes.
- Started and finished the grocery system text based project.
- Started the robux system text based project
Homework:
Continue in your same robux system file and add the following:
for each selection, try to add code so you check if you have enough robux in your account and if you do have enough robux, you can buy the item, if not, then print out:
print(f”You only have {robux} robux remaining. Therefore you cannot purchase {item_name} for {price} robux.”)
here is the format for a selection:
if selection == “1”:
___if _____:
______robux -= 100
______print(f”You purchased a Hat. You have {robux} robux remaining.”)
___else: # tell the user they dont have enough robux
_____
Notes:
If you have any questions, you can email me at ddjapri@ayclogic.com!!