Question

Write a Python program to calculate the volume of a sphere with the radius = 5.

  1. Write a Python program to calculate the volume of a sphere with the radius = 5.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Here Iam providing the code and the output for the given problem

Code:-

radius = 5 #declaring the radius volume = ((4/3) (3.141) *pow(radius,3)) #calculation of volume print(The volume of sphere i

output:-

The volume of sphere is 523.50

Code

radius = 5 #declaring the radius
volume = ((4/3)*(3.141)*pow(radius,3)) #calculation of volume
print("The volume of sphere is "+'%.2f'%volume) #priting the volume upto two decimal points

If you got the output correct please give me a thumbs up.Thanking you

Add a comment
Know the answer?
Add Answer to:
Write a Python program to calculate the volume of a sphere with the radius = 5.
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT