[Tutor] revisiting a puzzle about -3**2 vs (-3)**2

D Wyatt fiberfolly at gmail.com
Wed Aug 12 21:14:16 CEST 2015


>
>>>> pow(-3, 2)
> 9
>
> I'm explicitly telling Python I want the value -3 raised
> to the power 2.
>
>
> Alan G

so passing any numeric expression in a function is like putting ()
around it, correct?

Thank you for demoderating me :).

-- 
Deb Wyatt in WA


More information about the Tutor mailing list