Wednesday, January 12, 2011
The answer
>>> 4.0/3.0 * pi* 5**3
523.5987755982989
Took me awhile... I was aiming at using exp() but that didn't work so I found this site:
http://www.sthurlow.com/
"The volume of a sphere with radius r is 4/3 π r3. What is the volume of a sphere with radius 5? Hint: 392.6 is wrong!"
- http://www.greenteapress.com/thinkpython/html/book003.html (view on Google Sidewiki)