[Tutor] python problems on android

Dave Angel davea at davea.name
Fri Jan 3 23:54:10 CET 2014


On Fri, 03 Jan 2014 22:18:00 +0000, blechnum at fireflyuk.net wrote:
> one of the errors is in response to an input request like this


> g = input ("type h to use last settings ")


> stops the program with this


> File <string>, line1, in <module>
> NameError: name 'h' is not defined


> after I entered h

Looks to me like you were previously running python 3.x and somehow 
have reverted to 2.x

Add two lines before the input ()

import sys
print (sys.version)

to see what you're using.

-- 
DaveA



More information about the Tutor mailing list