Alex is shopping for a new school semester. He bought a backpack for $60, notebooks for $20, and pens for $10. He also used a discount coupon that saved him $15. Write a Python program to calculate the total money Alex spent after the discount.
name.backpack_cost and set it to 60.notebooks_cost and set it to 20.pens_cost and set it to 10.backpack_cost, notebooks_cost, and pens_cost.total_spent.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!
