Hello guys. How are you all? I hope you all fine. In this tutorial we will learn about how to make natural log in python. The natural log of a number has base `e` where `e = 2.718`. so without wasting time lets learn about of this.

to use natural log in python just use import. By using import you can use natural log in python. The natural log of a number has base `e` where `e = 2.718`. so lets learn about of this by given example: `from numpy import log as ln var = ln(2) print(var)` Output : `0.6931471805599453`

to use natural log in python just use log().By using log() you can use natural log in python. The natural log of a number has base `e` where `e = 2.718`. so lets learn about of this by given example: `import numpy var = numpy.log(2) print(var)` Output :
`0.6931471805599453`

3. python ln

To use natural log in python just use log().By using log() you can use natural log in python. The natural log of a number has base `e` where `e = 2.718`. so lets learn about of this by given example: `import numpy var = numpy.log(2) print(var)` Output :
`0.6931471805599453`

## Method 1: Use import

By using import you can use natural log in python. The natural log of a number has base `e` where `e = 2.718`. so lets learn about of this by given example:

``````from numpy import log as ln
var = ln(2)
print(var)``````

Output :

``0.6931471805599453``

## Method 2: Use log()

By using log() you can use natural log. The natural log of a number has base `e` where `e = 2.718`. so lets learn about of this by given example:

``````import numpy
var = numpy.log(2)
print(var)``````

Output :

``0.6931471805599453``

## Conclusion

It’s all About this Tutorial. Hope all methods helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which method worked for you?