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
On Thu, 20 Aug 2009 03:24:15 -0700, baalu aanand wrote: > Hi, > > I have used both raw_input() and input() for a same input value. > But these gives different output. > > I have listed below what actually I have done > > >>> a = raw_input("===>") >===>

Re: difference between raw_input() and input()

2009-08-20 Thread Chris Rebert
On Thu, Aug 20, 2009 at 3:24 AM, baalu aanand wrote: > Hi, > >     I have used both raw_input() and input() for a same input value. > But these gives different output. > >     I have listed below what actually I have done > >            >>> a = raw_input("===>") >                   ===> 023 >