Use: import task_operators_01
Ama is playing a video game. She starts with 10 points, earns 5 bonus points, and then loses 3 points to a penalty. She needs to know her final score after all the changes.
Write a Python program that calculates Ama’s score step by step using math operators.
player and set it to “Ama”.base_score and set it to 10.bonus and set it to 5.total_score using base_score + bonus.penalty and set it to 3.final_score using total_score - penalty.Hi <player> Your score after the bonus is <total_score> and after a penalty it is <final_score>.
Example: Hi Ama Your score after the bonus is 15 and after a penalty it is 12.
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!
