Re: [Tutor] cs student needs help import math

2013-09-07 Thread Don Jennings
On Sep 7, 2013, at 6:02 PM, Byron Ruffin wrote: > > >>> math.ceil(math.pi) > 4 > ... but I get the error when using ceil... > > pepsticks = ceil(peplength / StickLength) > Traceback (most recent call last): > File "", line 1, in > pepsticks = ceil(peplength / StickLength) > NameError

Re: [Tutor] cs student needs help import math

2013-09-07 Thread Chris Down
On 2013-09-07 17:02, Byron Ruffin wrote: > I am writing a simple program based off an ipo chart that I did correctly. > I need to use ceil but I keep getting an error saying ceil is not defined. > I did import math, I think. I am using 3.2.3 and I imported this way... > > >>> import math > >>> mat

Re: [Tutor] cs student needs help import math

2013-09-07 Thread Amit Saha
On Sun, Sep 8, 2013 at 8:02 AM, Byron Ruffin wrote: > I am writing a simple program based off an ipo chart that I did correctly. > I need to use ceil but I keep getting an error saying ceil is not defined. > I did import math, I think. I am using 3.2.3 and I imported this way... > import mat

[Tutor] cs student needs help import math

2013-09-07 Thread Byron Ruffin
I am writing a simple program based off an ipo chart that I did correctly. I need to use ceil but I keep getting an error saying ceil is not defined. I did import math, I think. I am using 3.2.3 and I imported this way... >>> import math >>> math.pi 3.141592653589793 >>> math.ceil(math.pi) 4 >>>