[Tutor] (no subject)
William Becerra
wbecerra1 at gmail.com
Thu Oct 9 20:38:02 CEST 2014
I'm new to programming. Started reading the book 'How to think like a
computer Scientist-learning with python'. I'm now in chapter 3 sub-chapter
3.4 Math functions.
When I write the following code:
import maths;
decibel = math.log10 (17.0);
angle = 1.5;
height = math.sin(angle);
print height;
I get the following error:
Traceback (most recent call last):
File "C:/Python27/test", line 1, in <module>
import maths;
ImportError: No module named maths
I don't know what I'm doing wrong?
>From what I've read the maths module is supposed to come with the python
installation package.
I'm using a windows 8 operating system
python 2.7.8
please help?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20141009/5670d430/attachment.html>
More information about the Tutor
mailing list