Exponentiation | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Exponentiation

is there a function to do exponentiation ??

23rd Aug 2017, 2:37 PM
Yasser Mamdouh
Yasser Mamdouh - avatar
2 Answers
- 1
sure ... import math n=math.e**5 print(n) it will print e to the power 5
23rd Aug 2017, 2:42 PM
sayan chandra
sayan chandra - avatar
- 1
import math n=math.pow(math.e,5) print(n) it will also print e to the power 5
23rd Aug 2017, 2:44 PM
sayan chandra
sayan chandra - avatar