How to solve exponentiation problem which given in this app course | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

How to solve exponentiation problem which given in this app course

2nd Jan 2022, 1:12 AM
Thakur 9027
2 Answers
+ 1
Python has three ways to exponentiate values: The ** operator. To program 2⁵ we do 2 ** 5 . The built-in pow() function. 2³ coded becomes pow(2, 3) . The math. pow() function. To calculate 3⁵, we do math. pow(3, 5) . // Other resources: https://www.geeksforgeeks.org/modular-exponentiation-python/amp/ https://www.geeksforgeeks.org/modular-exponentiation-power-in-modular-arithmetic/amp/ https://www.geeksforgeeks.org/pow-in-python/amp/
2nd Jan 2022, 2:41 AM
NEZ
NEZ - avatar