Question: Write a python program that asks the user for three numbers and displays Their sum The average of the numbers to 1 decimal point The

Write a python program that asks the user for three numbers and displays

Their sum

The average of the numbers to 1 decimal point

The largest number (done)

The smallest number

Display the number of even and odd integers (HINT % operator)

Number of integers that are negative and positive

Sample code template :

import math # module (file that contains useful functions including max x = int(input("please enter the first number ")) y = int(input("please enter the second number ")) z = int(input("please enter the third number ")) a = max(x,y,z) even = 0 # initialize odd = 0 # initialize print("max of ", x, " and ", y," and ", z, "is ", a) print("The first number is ", x) if (x > 0): even = even + 1 else: odd = odd + 1 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!