Question 1: Operator Score Calculator

🎯 Score Calculator

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.
  • Store Ama’s name in a variable called player and set it to “Ama”.
  • Store the starting score in a variable called base_score and set it to 10.
  • Store the bonus points in a variable called bonus and set it to 5.
  • Calculate the total score after the bonus and store it in total_score using base_score + bonus.
  • Store the penalty amount in a variable called penalty and set it to 3.
  • Calculate the final score after the penalty and store it in final_score using total_score - penalty.
  • Print exactly one line in this format:
    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.
Write what you are looking for, and press enter to begin your search!