Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

#new program sum and average #this program takes 5 inputs from the user and calculates the sum of 5 numbers, and the average of the

#new program sum and average
#this program takes 5 inputs from the user and calculates the sum of 5 numbers, and the average of the numbers
#by Mara Caminero
def main ():
number 1= eval (input("what is the first number?"))
number 2= eval (input("what is the second number?"))
number 3= eval (input("what is the third number?"))
number 4= eval (input("what is the fourth number?"))
number 5= eval (input("what is the fifth number?"))
sum = number 1+ number 2+ number 3+ number 4+ number 5
average = sum /5
print("The sum of the numbers is", round(sum,2))
print("The average of the numbers is", round(average,2) what is the error, this is pycharm

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_2

Step: 3

blur-text-image_3

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

Database Development For Dummies

Authors: Allen G. Taylor

1st Edition

978-0764507526

More Books

Students also viewed these Databases questions

Question

Replace the question mark by or = whichever is correct. 1/2 ? 0

Answered: 1 week ago

Question

define EFFECTIVE PARTICIPATION

Answered: 1 week ago

Question

What is database?

Answered: 1 week ago

Question

What are Mergers ?

Answered: 1 week ago