Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

# display a welcome message print ( The Test Scores program ) print ( ) print ( Enter 3 test scores ) print

# display a welcome message
print("The Test Scores program")
print()
print("Enter 3 test scores")
print("======================")
# get scores from the user
total_score =0 # initialize the variable for accumulating scores
total_score += int(input("Enter test score: "))
total_score += int(input("Enter test score: "))
total_score += int(input("Enter test score: "))
# calculate average score
average_score = round(total_score /3)
# format and display the result
print("======================")
print("Your scores: ", score1, score2, score3)
print("Total Score: ", total_score,"
Average Score:", average_score)
print()
print("Bye")

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions

Question

Use synthetic division to divide. 2x + 8x + 13 x + 2

Answered: 1 week ago