I'm new to programming and I decided to begin with Python. I downloaded Python 3.3 and I'm using the book "Python Programming: An Introduction to Computer Science 2nd edition". In the book there is an exercise to make a module file. I wrote the file in IDLE and I saved it as chaos.py in my documents. After I open a new IDLE and I try to import the file it comes up with this:
>>> import chaos
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import chaos
File "./chaos.py", line 1
Python 3.3.1 (v3.3.1:d9893d13c628, Apr 6 2013, 10:32:10)
^
SyntaxError: invalid syntax
As I said before, I am new to programming and I don't know what to do.
>>> import chaos
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import chaos
File "./chaos.py", line 1
Python 3.3.1 (v3.3.1:d9893d13c628, Apr 6 2013, 10:32:10)
^
SyntaxError: invalid syntax
As I said before, I am new to programming and I don't know what to do.