**New course!**Every coder should learn

**Generative AI!**

0

# How do i do an exponential function in python

Example: 2 raised to the 4

4 Answers

+ 6

I think it is 2**4.

+ 5

This is a really simple task:
print(2 ** 4)
print(pow(2,4))
Both versions are giving the same result = 16

+ 3

Thank you. I found .exp(4) online but i couldnt find a way to make it work to this is a big help. Thank you 🐹 Alex Tusinean 🌽 Lothar

0

exp(4) is something different, it is e^4.