Question: CODE IN PYTHON 1.) A function named power consumes two int arguments and returns the int which is the first argument value raised to the
CODE IN PYTHON
1.) A function named power consumes two int arguments and returns the int which is the first argument value raised to the second argument value. Assume a variable named side_length has already been assigned an int value. Write a statement which uses power to compute the volume of a cube where each side is of length side_length, and assign that value to a variable volume.
2.) A function named maximum consumes two int arguments and returns the larger int value.
Assume that two variables, age1 and age2, have already been assigned int values. Use maximum to write an expression that is the larger of the two values referenced by age1 and age2 and assign it to a variable named max_age.
3.) A function named maximum consumes two int arguments and returns the larger int value.
Assume that four variables, score1, score2, score3, and score4, have already been assigned int values. Use maximum to write an expression that is the largest of these four values and assign it to a variable named max_score. You must use ONE statement for this expression.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
