First python program, syntax error in while loop
Roy Smith
roy at panix.com
Mon May 6 11:31:54 EDT 2013
In article <mailman.1361.1367847484.3114.python-list at python.org>,
Chris Angelico <rosuav at gmail.com> wrote:
>On Mon, May 6, 2013 at 11:08 PM, Roy Smith <roy at panix.com> wrote:
>> On the other hand, I've long since given up trying to remember operator
>> precedence in various languages. If I ever have even the slightest
>> doubt, I just go ahead and put in the extra parens.
>
>If I ever have even the slightest doubt, I just go ahead and type
>"<language> operator precedence" into a web search and check it :)
Well, that solves the problem once, and it solves it for me. I figure
if I'm not 100% sure, then maybe other people aren't 100% sure either,
and my adding the extra parens helps them too.
More information about the Python-list
mailing list