so I 'get' that -5**2 = -25 and (-5)**2 is 25, BUT if you write a function def sq(x): """ Output: sq returns the square of its input input x: a number (int or float) """ return x**2
and pass it a negative number it handles it as though the argument is in parentheses. I find this confusing. Can someone explain? Also, can someone please take me off moderated? thanks in advance. -- Deb Wyatt in WA _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor