How to add powers to a number in python ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to add powers to a number in python ?

6th Sep 2021, 4:44 AM
Amshu G M
3 Answers
+ 3
TheĀ ** operatorĀ and the pow() function calculate the power of a number in Python. The ** operator raises the number on the left to the power of the number on the right. pow(base, exponent, modulus)
6th Sep 2021, 4:53 AM
SAN
SAN - avatar
+ 2
https://www.sololearn.com/discuss/2292359/?ref=app https://www.sololearn.com/discuss/1808261/?ref=app https://www.sololearn.com/discuss/2077713/?ref=app Hello Amshu G M, this question has been asked a few times before. Next time use the search bar before you ask a new question
6th Sep 2021, 4:54 AM
David Akhihiero
David Akhihiero - avatar
0
Thanks
7th Sep 2021, 8:39 AM
Amshu G M