Without using the logical way of thinking how to solve a problem,

we can import from python library to solve them. It makes programmers to make their code easy to write!

Example :

library1.png


another easy way :

from math import sqrt
num = 9
print(sqrt(num))

prints,

3.0