Start by defining two empty lists:
shopping_list
to store the names of the items bought.shopping_cost
to store the prices of the items bought.Ask the customer if they want to buy specific items:
Press 1
) or skip it (Press 2
).shopping_list
and its price to shopping_cost
if the customer chooses to buy it.Check conditions after each purchase:
"Your total has exceeded your budget of 2000 dollars!"
After shopping, print a summary:
We’re always looking for international STEM educators to join our team. If you are interested, please send us a mail and we’ll get back to you!
If you have any questions, kindly send us a mail. Don’t forget to follow and like all our social accounts to get updates on competitions!