Mary bought a dog and a toy bone for her dog. She spent $150 on the dog and $20 on the toy bone. Later, she sold her dog for $300. Write a Python program to calculate how much money Mary made from selling her dog.
name
.cost_of_dog
and set it to 150.cost_of_toy_bone
and set it to 20.selling_price_of_dog
and set it to 300.profit
.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!