Question: Write a function def sphereVolume(r) that computes the volume of a sphere with radius r. Then write a program that prompts the user for
Write a function def sphereVolume(r) that computes the volume of a sphere with radius r. Then write a program that prompts the user for the value of r. Format your output so that it contains three decimal places. Ex: If the input is: Enter the radius: 3.8 then the return value is: 229.84729611703878 and the output is: A sphere has volume: 229.847 Please make sure to write the entire program including function def main (): The volume of a sphere is 4
Step by Step Solution
3.30 Rating (147 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
