0
What does ** mean in Python?
please give examples
2 Antworten
+ 15
Exponentation
2**2=4
3**2=9
4**2=16
......
+ 2
** -> using the magic method __pow__
Let's say this is our code:
a = 5
B = 2
Typing a**B is the same as (a).__pow__(B)
The name for this sign is "exponential"
This topic is explained more in the object oriented programming lessons