0

What is **

18th Jul 2020, 7:02 PM
Makhsudov_27
Makhsudov_27 - avatar
5 Answers
+ 10
It is Exponentiation operator in Python. It raises the first number to the power of the second. Example - 3**4 = 81
18th Jul 2020, 7:25 PM
Noor ❀
Noor ❀ - avatar
+ 9
without any code it can mean different things. Exponentiation is already named, but there is also a use as star operator or for unpacking. Sending 3 named variables (as Alexander Koval already mentioned) to the function, creates a dict . def get_a(**values): print(values) # {'a': 1, 'b': 2, 'c': 3} return values['a'] print(get_a(a=1, b=2, c=3))
18th Jul 2020, 8:29 PM
Lothar
Lothar - avatar
+ 6
** is exponentiation. 2**4 means 2^3 it 2 to the power 3 which gives 32
18th Jul 2020, 7:26 PM
Nilesh
Nilesh - avatar
+ 3
thanks to all â˜șâ˜șïžđŸ‘
18th Jul 2020, 8:34 PM
Makhsudov_27
Makhsudov_27 - avatar
+ 2
If located before variable name means kwargs: named arguments.
18th Jul 2020, 8:18 PM
Alexander KovalđŸ‡§đŸ‡Ÿ
Alexander KovalđŸ‡§đŸ‡Ÿ - avatar