you can start by primarily import math module of python and using the sqrt function .
But for the above code sqrt=x**(½) simply perform what we called integer division
First it calculate x(½) and then x(0) ==1
So the answer of this kind equation will always be 0,no matter whatever be the value of x.
So the recommended way is to go with sqrt=X**(.5)