In short input runs an eval on the text before it passes it! So input like
ord('a') will work fine because it will run that code!
On Dec 26, 2007 5:26 AM, <[EMAIL PROTECTED]> wrote:
> Thanks guys! It worked.
>
> Merry Christmas!
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
Thanks guys! It worked.
Merry Christmas!
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> code sample:
> --
> i=input()
> try:
> x=int(i)
> print "you input an integer"
> except ValueError:
> print "you must input an integer"
>
> when I input a value like,
code sample:
--
i=input()
try:
x=int(i)
print "you input an integer"
except ValueError:
print "you must input an integer"
when I input a value like, b
I got the traceback message instead of prop