Oct-17-2016, 08:39 PM
(Oct-17-2016, 06:48 PM)nilamo Wrote: I'm not sure that should be used in practice, as when I saw that I immediately thought it'd fail, since in my mind (a==b) becomes a bool, and c!=True.
Ah, but then this wouldn't work either:
if -10 < x < -2:Also note:
>>> a, b, c = 0, 0, 0 >>> (a == b) == c False
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures