Max bought school supplies for his new school year. He bought 3 notebooks for $4 each, 5 pens for $1 each, and a backpack for $20. Write a Python program to calculate the total amount Max spent on school supplies.
name
.num_notebooks
and set it to 3.notebook_price
and set it to 4.num_pens
and set it to 5.pen_price
and set it to 1.backpack_price
and set it to 20.num_notebooks
by notebook_price
.num_pens
by pen_price
.backpack_price
.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!