pi = 3.1415926535897931
r= 6.0
V= 4.0/3.0*pi* r**3
print('The volume of the sphere is: ',V)
Output:
The volume of the sphere is: 904.7786842338603
pi = 3.1415926535897931
r= 6.0
V= 4.0/3.0*pi* r**3
print('The volume of the sphere is: ',V)
Output:
The volume of the sphere is: 904.7786842338603
Append and read in file handling in python
Python program to find H.C.F of two numbers
Python program for Armstrong number
Python program to find the Factorial of any number
How to add all number in list in python
Python program to find the largest of three numbers
Python program which takes radius from user and print area
Python Program to display the Fibonacci sequence up to n-th term
Write a Python program to get the the volume of a sphere with radius 6