[sf-lug] [PYCLASS] Still on exercise 2.1

Charles-Henri Gros chgros at coverity.com
Fri Oct 3 20:30:14 PDT 2008

Christian Einfeldt wrote:
> hi,
> Okay, with Jim's help, I was able to get past exercise 2.2.  Now I am on
> exercise 2.4.1, which poses this question:
> The volume of a sphere with radius R is 4/3piRcubed.  What is the volume
> of a sphere with radius 5?
> I have been vexed by this problem.  As the problem is written, I am
> interpretting it to ask me to first divide 4 by 3.  Then, I am asked to
> multiple the product of that figure by piRcubed.  We are told that the
> answer is _not_ 392.6, but that is the only answer that I seem to be
> able to produce.  Any thoughts?  My results are below:
>>>> (4/3)*(pi*5**3)
> 392.69874999999996

Try printing 4/3

I was also confused by this sort of thing years ago when I first learned


More information about the sf-lug mailing list