
May 7th, 2003, 01:58 PM
|
|
Registered User
|
|
Join Date: Mar 2003
Location: Atlanta
Posts: 9
Time spent in forums: 35 m
Reputation Power: 0
|
|
|
Interactive Mode
Which parts did you try to run in a script? Many of his snippets were just declarations of objects, so by themselves they would have no output (even though they "ran" correctly). Really, it looks like it was all intended to be run interactively, anyway.
Also, notice that when you simply name a variable in the interpreter, its value is returned. This doesn't happen in a script. You would need a print statement (or some such) to output the value from a script.
> the meaning of life in python: int('10'*3,2)
|