Why gives "k = 09" a syntax error ?

Diez B. Roggisch deets at nospam.web.de
Wed Oct 29 16:06:14 EDT 2008


Stef Mientki schrieb:
> hello,
> 
> Why gives "k = 09"  a syntax error ?

because numbers starting with 0 are an octal value, allowing only the 
literals 0-7.

Diez



More information about the Python-list mailing list