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
Python Program to find the ASCII value of the given character
Increment and decrement operator in python
Python program to swap first and last element of a list
Python code to find sum of elements in given array
Write a Python program to get a string which is n (non-negative integer) copies of a given str
program to display the examination schedule
Python program to display the first and last colors from the following list
write() and read() in file handling in python
Python program that accepts an integer (n) and computes the value of n+nn+nnn
Return list by function in python
Python Program to check if a string is palindrome or not