error with string (beginner)
Alex Pavluck
apavluck at gmail.com
Sun Jun 25 08:58:17 EDT 2006
Hello. I get the following error with the following code. Is there
something wrong with my Python installation?
code:
import types
something = input("Enter something and I will tell you the type: ")
if type(something) is types.IntType:
print "you entered an integer"
elif type(something) is types.StringType:
print "you entered a string"
error:
String: Source for exec/eval is unavailable
More information about the Python-list
mailing list