Tim Haynes wrote:
> Larry Gregg <lg...@ac...> writes:
>
>
>> People:
>>
>> Why does the following produce a syntax error?
>>
>> ==> 7+09
>> ! Syntax error
>> >>> 7+09
>> ^
>>
> [snip]
>
>
>> It seems reasonable that 7 + 09 should produce 16, yes?
>>
>
> Seemingly not. Consider:
>
> | ==> 071
> | 57
>
> Octal means numbers digits go up to 7, hence that syntax error ;)
>
> ~Tim
>
Tim:
Thanks. I see now why it errored out.
Larry
|