and can have a subscript.
-Original Message-----
From: Python-list On
Behalf Of Rob Cliffe via Python-list
Sent: Wednesday, March 3, 2021 10:19 PM
To: Python
Subject: a + not b
I can't work out why
1 + - 1
1 + (not 1)
are legal syntax, but
1 + not 1
isn't.
Is there a good reason for this?
Thanks
Rob Cliffe
--
https://mail.python.org/mailman/listinfo/python-list
" and just before
"and" and "or" so you need parentheses to force the interpretation you may
intend. Similarly, some used of "and" require parentheses as do other operators.
-Original Message-
From: Python-list On
Behalf Of Rob Cliffe via Python-list
I can't work out why
1 + - 1
1 + (not 1)
are legal syntax, but
1 + not 1
isn't.
Is there a good reason for this?
Thanks
Rob Cliffe
--
https://mail.python.org/mailman/listinfo/python-list