[Tutor] (no subject)

Joel Goldstick joel.goldstick at gmail.com
Fri Oct 10 02:03:23 CEST 2014


On Oct 9, 2014 8:00 PM, "William Becerra" <wbecerra1 at gmail.com> wrote:
>
> 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;
import math

You added s

> 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 at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20141009/787fbf3e/attachment.html>


More information about the Tutor mailing list