You are using the input() function instead of using raw_input().
He also is using parenthesis in his print statements. I'd surmise that he's using Python 3.0, in which case the use of input is the only option. (
input has been replaced by
raw_input )
EDIT: Additionally, I tried his code (after modifying it to be Python 2.X compliant) and it worked for the most part. To the OP: could you explain the error in more detail and provide some traceback?
Last edited by jlm699; Nov 5th, 2009 at 1:26 pm.
Reputation Points: 355
Solved Threads: 292
Veteran Poster
Offline 1,102 posts
since Jul 2008