Use: import task_operators_03
Tunde gets 20 naira from his dad every week. He saves 12 naira and spends the rest on snacks. He wants to know how much he spends in one week and how much he will have saved after 4 weeks.
Write a Python program that calculates Tunde’s spending and savings.
name and set it to “Tunde”.weekly_money and set it to 20.weekly_savings and set it to 12.weekly_spending using weekly_money - weekly_savings.weeks and set it to 4.total_savings using weekly_savings * weeks.<name> spends <weekly_spending> naira per week and saves <total_savings> naira in <weeks> weeks.
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!
