Steve is gathering tools for his next Minecraft adventure. He bought a diamond pickaxe for $80, a shield for $30, and torches for $15. Write a Python program to calculate the total money Steve spent.
name
.pickaxe_cost
and set it to 80.shield_cost
and set it to 30.torch_cost
and set it to 15.pickaxe_cost
, shield_cost
, and torch_cost
.Print Output:
“Hi Steve! You spent a total of $[total_spent] on your Minecraft tools.”
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!