0
Well how is this 16
>>> 2**5 32 >>> 9 ** (1/2) 3.0
7 odpowiedzi
+ 2
2**(5-1)=16
+ 1
2**4=16
+ 1
2**4 means two to fourth: 2*2*2*2=16
2**5 means the fifth power of two: 32
9**(1/2) is the square root, so it is 3
+ 1
i meant 32
+ 1
my bad
0
i still dont get it am i subtracting the one from the 5
0
Well, Python applies operator precedence just like the one in lower primary school 'BODMAS'
Hence in our example, the arithmetic in the parenthesis is computed first. I.e (5-1)=4
Then 2**4 is 2 raised to the power of 4, resulting to 16.
😉