Lets look at the test scores first. You did the first step correctly. You create
ID: 387035 • Letter: L
Question
Lets look at the test scores first. You did the first step correctly. You created 3 variables to store the 3 scores. The next step is to create a new variable called total_scores and then do the print with the total_scores variable instead of doing print("Total Scores:", score1 + score2 + score3) How do you think you might do that? Test scores print("Enter 3 test scores") print("========================") score1 = int(input("Enter test score: ")) score2 = int(input("Enter test score: ")) score3 = int(input("Enter test score: ")) print("========================") print("Your Scores:", score1, score2, score3) print("Total Scores:", score1 + score2 + score3) print("Average Scores:", int((score1 + score2 + score3)/3))
Explanation / Answer
Hi studnet, you teacher wanted you to store the three scores in a separate variable called "Total Scores" You can do that by initially calling a new variable type for "Total scores"
Define int Total_scores
In the second step give the formula for the "Total_scores" after inputing the three scores.
I.e. Total_scores = score1 +score2 + score l3
Then print the Total score in stead of print("Total Scores:", score1 + score2 + score3
Print as:
print(Total_scores
Do let me know if you have any doubts about the explanation
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.