[Tutor] PI

David Merrick merrickdav at gmail.com
Thu May 26 06:21:01 CEST 2011


How do I can access to the math module to use PI?

area = math.pi * pow(3,2)
Traceback (most recent call last):
  File "<pyshell#16>", line 1, in <module>
    area = math.i * pow(3,2)
NameError: name 'math' is not defined

-- 
Dave Merrick

merrickdav at gmail.com

Ph   03 3423 121
Cell 027 3089 169
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110526/480c86ca/attachment.html>


More information about the Tutor mailing list