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?
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to