Question: Math 1 A). Write a function called average. Given two numbers, average returns their average. output = average (4, 6) print (output) # --> 5

 Math 1 A). Write a function called "average". Given two numbers,

Math 1 A). Write a function called "average". Given two numbers, "average" returns their average. output = average (4, 6) print (output) # --> 5 PYTHON36 1 2 3 def average(numi, num2): # your code here pass B). Write a function called "compute area of triangle". Given the base and height of a triangle, "compute area of triangle" retums its area. output = compute.area.of.triangle(4, 6) print (output) # --> 12 PYTHON36 1- def compute_area_of_triangle(base, height): 2 f your code here 3 pass C). Wnte a function called 'cube". Given a number, 'cube" retums the cube of that number. output = cube (3) print (output) # --> 27 PYTHONSG 1- def cube(num): 2 # your code here 3 pass p). Write a function called "square". I Given a number, "square" should retum the square of the given number. output = square (5) print (output) # --> 25 PYTHON3.6 1. def square(num): your code here 3 pass

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!