how to calculate ** this? ex: 2 ** 5 how we get this answer 32 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

how to calculate ** this? ex: 2 ** 5 how we get this answer 32

thanks !

24th Mar 2017, 2:42 PM
Nasibillo Muhamedov
Nasibillo Muhamedov - avatar
2 Answers
+ 3
** is raise to operator and calculate x raise to the power y In given example 2**5 = 2×2×2×2×2=32
24th Mar 2017, 2:48 PM
देवेंद्र महाजन (Devender)
देवेंद्र महाजन (Devender) - avatar
+ 1
Okay. So, basically i'll outline this and one similar operator. 2 * 5 means that 2 is multiplied by 5, which would give 10. 2 ** 5 means that 2^ 5. More specifically, 2 * 2 * 2 * 2 * 2. This gives 32
24th Mar 2017, 2:50 PM
Ateeb Ahmed
Ateeb Ahmed - avatar