Question: import math core _ radius = 2 0 0 def sphere _ volume ( radius ) : volume = ( 4 / 3 ) *

import math
core_radius =200
def sphere_volume(radius):
volume =(4/3)* math.pi * radius**3
return volume
def mantle_volume(outer_radius, inner_radius):
outer_volume = sphere_volume(outer_radius)
inner_volume = sphere_volume(inner_radius)
mantle_volume = outer_volume - inner_volume
return mantle_volume
mantle_vol = mantle_volume(500, core_radius)
print("The volume of the mantle is: ", mantle_vol)
identify a function name, a function call, a function definition, a formal parameter, an actual parameter(or argument), a name with local scope, a name with global scope and a return value for that code!

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 Programming Questions!