+ 1

How can we take power of power in python of a number?

Like simple power , 2**2, can we take further power like 2**2**3.

20th May 2019, 12:13 AM
iftikhar ali
iftikhar ali - avatar
2 Answers
+ 1
print(2**2**3) # 256 print(2**8) # 256
20th May 2019, 12:36 AM
Diego
Diego - avatar
+ 2
Thanks
20th May 2019, 12:38 AM
iftikhar ali
iftikhar ali - avatar