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
Get step-by-step solutions from verified subject matter experts
