Question: Fill in the code below so that it gets the circumference of a circle from a user, uses a function to calculate and return the
Fill in the code below so that it gets the circumference of a circle from a user, uses a function to calculate and return the diameter, and then prints the diameter.
Fill in the Blanks Fill in the blanks
{C} Select: calculate_diameter(circumference): def calculate_diameter(circumference): print calculate_diameter(circumference): calculate_diameter(pi) pi = 3.14 diameter = {C} Select: diameter / pi circumference / pi circumference / 2 / pi circumference * pi return user_input = (input("What is the circumference of the circle?")) print( )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
