Two asterisks ** are used to raise a number to the power of another, which is called exponentiation. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Two asterisks ** are used to raise a number to the power of another, which is called exponentiation.

whats that mean

2nd Oct 2022, 6:34 PM
garima
garima - avatar
2 Answers
+ 2
Hi, garima ! In Python a ** n, where a and n are integers, means: a1 * a2 * … * an, where a1 = a2 = … = an = a that is: a raised to power n, or a^n
2nd Oct 2022, 6:54 PM
Per Bratthammar
Per Bratthammar - avatar
0
You asking or telling..?
3rd Oct 2022, 8:31 AM
A S Raghuvanshi
A S Raghuvanshi - avatar