On Sat, Feb 20, 2010 at 8:07 AM, Shurui Liu (Aaron Liu) <[email protected]> wrote: > How to describe a math formula: sphere=(4/3)*PI*R**3?
A function seems like the logical thing to do:
import math
def spherical_volume(radius):
return (4.0/3)*math.pi*radius**3
--
André Engels, [email protected]
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
