X1250: sphereVolume

Given an integer representing the radius of a sphere, compute and return the sphere's volume based on the following formula:

Volume = 4/3 x Pi x radius3

Examples:

sphereVolume(5) -> 523.5987755982989
sphereVolume(12) -> 7238.229473870882

Your Answer:

Reset

Practice a different Python exercise

Feedback

Your feedback will appear here when you check your answer.