+ 2
[DUPLICATE] đ What does ** means ?
Just a quick question about something in Python, which often occurs in my Challenges, but I've never seen that before. a = 3 b = 7 print(a**b) >> 2187 I don't understand what is ** , and why it gives the result 2187, if someone could explain to me please đâš
4 Answers
+ 15
** in python or ruby means ^ in math
ie 3**7 = 3^7 = 3.3.3.3...7times =2187
+ 4
3**7 is 3^7 or 3x3x3x3x3x3x3 which is 2187
+ 4
Its equivalent to the carot key (^). Used to create exponents.
+ 2
Aw, thank you all đ«