Go into IDLE (also called the Python GUI). You should see a window that has some text like this:
1
Python 2.0 (#4, Dec 12 2000, 19:19:57)
[GCC 2.95.2 20000220 (Debian GNU/Linux)] on linux2
Type "copyright", "credits" or "license" for more information.
IDLE 0.6 -- press F1 for help
>>>
The >>> is Python way of telling you that you are in interactive mode. In interactive mode what you type is immediately
run. Try typing 1+1 in. Python will respond with 2. Interactive mode allows you to test out and see what Python
will do. If you ever feel you need to play with new Python statements go into interactive mode and try them out.
No comments:
Post a Comment