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 ():
num 1= eval (input("what is the first number?"))
num 2= eval (input("what is the second number?"))
num 3= eval (input("what is the third number?"))
num 4= eval (input("what is the fourth number?"))
num 5= eval (input("what is the fifth number?"))
sum = num 1+ num 2+ num 3+ num 4+ num 5
average = sum /5 what is the error here

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

Data And Information Quality Dimensions, Principles And Techniques

Authors: Carlo Batini, Monica Scannapieco

1st Edition

3319241060, 9783319241067

More Books

Students also viewed these Databases questions