[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

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 math.pi

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 byron.ruf...@g.austincc.edu 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

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: snip math.ceil(math.pi) 4 snip ... but I get the error when using ceil... pepsticks = ceil(peplength / StickLength) Traceback (most recent call last): File pyshell#19, line 1, in module pepsticks = ceil(peplength / StickLength)