On Sat, Feb 20, 2010 at 8:07 AM, Shurui Liu (Aaron Liu) <shuru...@gmail.com> 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, andreeng...@gmail.com _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor