if you prefix number with zero, it will turn into octal number... I
too wasn't aware of it... at least in python :/
http://en.wikipedia.org/wiki/Octal
It seems like bad practice to put zeroes before any decimal number in
any language :)
Juraj
--
http://mail.python.org/mailman/listinfo/python-list
===> 023
> >>> a
> 19
>
> Is there anything hide within this. Please illustrate the difference
> between raw_input() and input()
Did you look them up in the documentation?
Did you try the interactive help?
help(input)
help(raw_
==> 023
> >>> a
> 19
>
> Is there anything hide within this. Please illustrate the difference
> between raw_input() and input()
input() === eval(raw_input())
eval("023") --> int("23", 8) --> 19 [an integer, not a string]
'023'
I have given the same value for the input() but it gives 19 as
result
>>> a = input("===>")
===> 023
>>> a
19
Is there anything hide within this. Please illustrate th