Question: import math core _ radius = 2 0 0 def sphere _ volume ( radius ) : volume = ( 4 / 3 ) *
import math
coreradius
def spherevolumeradius:
volume math.pi radius
return volume
def mantlevolumeouterradius, innerradius:
outervolume spherevolumeouterradius
innervolume spherevolumeinnerradius
mantlevolume outervolume innervolume
return mantlevolume
mantlevol mantlevolume coreradius
printThe volume of the mantle is: mantlevol
identify a function name, a function call, a function definition, a formal parameter, an actual parameteror 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
