0
What is **
5 Answers
+ 10
It is Exponentiation operator in Python. It raises the first number to the power of the second.
Example - 3**4 = 81
+ 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))
+ 6
** is exponentiation.
2**4 means 2^3 it 2 to the power 3 which gives 32
+ 3
thanks to all âșïžâșïžđ
+ 2
If located before variable name means kwargs: named arguments.