write a python program that designs these four functions bel
write a python program that designs these four functions below. printVals(x,y) Assume that the passed inputs, x and y, are integers where y is bigger than x. The goal of the function is to print all of the values from x to y (inclusively) on a single line. For example, the following shows the behavior of the function. average(A) Assume A is a list of integer values. Your goal is to find the average of the passed list and return this value. For example, the following shows the behavior of the function. >>> A = [1,2,3,4] >>> print(average(A)) 2.5 volume(r) Assume r is the radius of a sphere. Your goal is to calculate and print (not return) the volume of the sphere. Make sure the radius is positive. If it is not, print an error message. The formula is as follows, (4 / 3) * pi * r3 Write up a function that first calculates the average of a list of numbers (Call your average function from above maybe!). Then take that average and go through the list again. This time count the amount of numbers greater than the average and the amount of numbers less than the average. Display these counts.
Solution
1)))))))))))))
def weird(x1,x2):
if x1>x2
return(x1)
else
return(x2)
x= weird(2,5)
print x
2))))))
3)))))))))))
