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 :

another easy way :
from math import sqrt
num = 9
print(sqrt(num))
prints,
3.0