Question 4: Input Game Points Calculator

🎮 Game Points Calculator

Use: import task_input_04


David is playing a game where he earns 10 points for every challenge he completes. He wants to know how many points he will earn after completing a number of challenges.

Write a Python program that asks David how many challenges he wants to complete and calculates his total points.

  • Use input("How many challenges? ") to ask the user how many challenges they want to complete. Store the answer in a variable called challenges_text.
  • Convert challenges_text to an integer using int() and store the result in a variable called challenges.
  • Store the points earned for each challenge in a variable called points_per_challenge and set it to 10.
  • Calculate the total points and store the result in a variable called total_points using challenges * points_per_challenge.
  • Print the total points using:
    Total points: <total_points>
Write what you are looking for, and press enter to begin your search!