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.
input("How many challenges? ") to ask the user how many challenges they want to complete. Store the answer in a variable called challenges_text.challenges_text to an integer using int() and store the result in a variable called challenges.points_per_challenge and set it to 10.total_points using challenges * points_per_challenge.Total points: <total_points>
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!
