Answer to Question #271771 in Python for kika

Question #271771

Write a function called print volume (r) that takes an argument for the radius of the sphere, and prints the volume of the sphere.


1
Expert's answer
2021-11-26T07:09:13-0500
def printVolume(r):
    pi=3.142
    volume=(4/3)*pi*r*r*r;
    print("The volume of the sphere is : ",volume)


printVolume(7)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS