+ 4

Exponentiations in Python

What does it mean to chain exponentiations together in python? "You can chain exponentiations together. In other words, you can rise a number to multiple powers. For example, 2 3 2."

11th Sep 2018, 5:45 PM
N E P H A R I O
N E P H A R I O - avatar
9 ответов
+ 14
Python allows you to do 2**3**2 which will be evaluated top-down as 2**(3**2)
11th Sep 2018, 5:55 PM
Hatsy Rei
Hatsy Rei - avatar
11th Sep 2018, 8:32 PM
Roneel
Roneel - avatar
+ 3
Hatsy Rei - Well explained! Thanks.
11th Sep 2018, 8:41 PM
N E P H A R I O
N E P H A R I O - avatar
+ 2
What is slicing and indexing ?
11th Sep 2018, 10:29 PM
Yusra
Yusra - avatar
+ 1
Para exponentes usar ** 2**2 = 4
19th Jan 2019, 3:03 AM
Darwin O Bayas M
0
2**3**2 would be 512 ,or how much?
28th Sep 2018, 7:50 AM
[No Name]
0
2**3**2 would be 512 ,or how much?
28th Sep 2018, 7:51 AM
[No Name]
0
Hatsy what is the output of that code
21st Feb 2019, 10:48 AM
Newman Richard
Newman Richard - avatar
- 1
hi am new here can anyone teach me python
11th Sep 2018, 7:58 PM
olatunji kayode
olatunji kayode - avatar