Re: difference between raw_input() and input()

2009-08-22 Thread Juraj G.
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

Re: difference between raw_input() and input()

2009-08-20 Thread Steven D'Aprano
===> 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_

Re: difference between raw_input() and input()

2009-08-20 Thread Chris Rebert
==>  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]

difference between raw_input() and input()

2009-08-20 Thread baalu aanand
'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