Why gives "k = 09" a syntax error ?
Guilherme Polo
ggpolo at gmail.com
Wed Oct 29 15:32:03 EDT 2008
On 10/29/08, Stef Mientki <stef.mientki at gmail.com> wrote:
> hello,
>
> Why gives "k = 09" a syntax error ?
>
09 is not a valid octal number. Instead use 011.
Ok, I guess you were not aware that prefixing a number with a '0'
would cause python to parse it as an octal and now you know.
> thanks,
> Stef Mientki
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
-- Guilherme H. Polo Goncalves
More information about the Python-list
mailing list