
December 30th, 2012, 06:58 PM
|
|
Contributing User
|
|
Join Date: Dec 2012
Posts: 88
  
Time spent in forums: 1 Day 5 h 29 m 46 sec
Reputation Power: 2
|
|
|
Really would've been better to copypaste from the shell into your post...
Yes, the issue is version. In Python 3, unlike Python 2, the input() function does not automatically evaluate input. If you want an integer, you'll have to call int() or eval() on the input yourself.
Note that even in Python 2, use of the input() function is discouraged in favour of raw_input(), which behaves like the Python 3 input() function.
|