D Wyatt
2015-07-31 00:58:27 UTC
I just read in a book a little while ago that ** trumps a negative
sign? I am struggling with the audacity of that as -1 is negative 1,
NOT minus 1. How can an arithmetic operation trump an attribute of a
negative integer? It truly makes no sense to me. Thank you for any
enlightenment you can provide.
Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:43:06) [MSC v.1600 32 bit (In
tel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
sign? I am struggling with the audacity of that as -1 is negative 1,
NOT minus 1. How can an arithmetic operation trump an attribute of a
negative integer? It truly makes no sense to me. Thank you for any
enlightenment you can provide.
Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:43:06) [MSC v.1600 32 bit (In
tel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
3**2
9(-3)**2
9-3**2
-9--
Deb Wyatt in WA
_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Deb Wyatt in WA
_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor