7. Python Program to find Area of a Sphere.
How does this program work?
- In this program you will learn about how to find Area of a Sphere using Python.
- This program requires the user input to enter the radius of a Sphere.
- By using Area of Sphere formula we can get the Output.
Here is the code
pi = 3.14
radius = int(input('Enter the radius of a sphere: '))
area = 4*pi*radius*radius
print(" Area of a sphere: " ,area)