02-18-2010, 09:17 PM
How can I do something like this:
However I can't do this because you can't subscript integers. How can I get around that?
Code:
x = 29
if x[1] == 9:
print "The second digit is 9"
else:
print "The second digit is not 9"
However I can't do this because you can't subscript integers. How can I get around that?