Exponentiation | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Exponentiation

is there a function to do exponentiation ??

23rd Aug 2017, 2:37 PM
Yasser Mamdouh
Yasser Mamdouh - avatar
2 Respuestas
- 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