On 12/07/13 11:07, eryksun wrote:
On Thu, Jul 11, 2013 at 9:01 PM, Steven D'Aprano wrote:
try:
if int(sys.version[0]) < 3:
input = raw_input
numbers_str = original = input('Enter a positive'
'integer, space separated if desired.') # error
On 12/07/13 10:44, Jim Mooney wrote:
When I tried a simple rename of input, it worked - in python 2.7 and python 3.3
import sys
if int(sys.version[0]) < 3:
input = raw_input
x = input('type something ')
print(x) # this works in both Py versions
But when I tried that in my numbers program