In python ,what is 10**2**3? Is it 1000000? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

In python ,what is 10**2**3? Is it 1000000?

please help

20th Jul 2017, 10:34 AM
BEENA KURIAN
BEENA KURIAN - avatar
5 Answers
+ 14
no... but all you had to do to find out was run print(10**2**3) not worth a question here, I think
20th Jul 2017, 10:47 AM
Ahri Fox
Ahri Fox - avatar
+ 7
No, it will give you 100000000 (8 zeros), the reason is ** is performed from right to left, so, you'll have: 10**2**3 = 10**8.
20th Jul 2017, 10:51 AM
Bàng Tứ Cường
Bàng Tứ Cường - avatar
+ 4
thank uuu @ Bàng Tú Cúong
20th Jul 2017, 11:01 AM
BEENA KURIAN
BEENA KURIAN - avatar
+ 2
that question comes in challege round. but my answer was shown wrong.
20th Jul 2017, 10:48 AM
BEENA KURIAN
BEENA KURIAN - avatar
+ 1
print(10**2**3) That bit of code will give you your answer
20th Jul 2017, 10:47 AM
LordHill
LordHill - avatar