What does pow do? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

What does pow do?

my_variable= pow (10,5,7) print(my_variable)

7th Sep 2019, 3:11 PM
Joe Carbon
Joe Carbon - avatar
2 Answers
+ 9
Pow(x,y,z) X- number which is to be powered Y- number which is to be powered with x Z-(optional) number which is to be '%' operation Example: X=7 Y=2 Z=5 Print(pow(x,y,z)) The output is 4 (7*7)%5==4 Hope i help you😃
7th Sep 2019, 3:19 PM
KfirWe
KfirWe - avatar
0
It will raise a number to the power of another number...that is 3 power 2 is 9 since 3x3 is also 9
8th Sep 2019, 3:30 AM
Zakir Hussain
Zakir Hussain - avatar