Posts Python Interview Question Series
Post
Cancel

Python Interview Question Series

It doesn’t means always the question should be complex, it can be simple aswell to test logical question.

Question

| Find the square root of a number without using sqrt module

Solution

It can be simple to achieve above using sqrt module

1
2
3
>>> import math
>>> print(math.sqrt(16))
4.0

Now lets see how to achieve above without using sqrt module

1
2
>>> 16**0.5
4.0

You could see above simply perform n0.5

Hope you find this useful


Thanks for reading till end.

Followus on insta @techpechu

Join Our Discord

We do run a youtube channel in Indian regional language Tamil called TechPechu. Do subscribe us for moral support. Happy Learning.

Follow us on instagram @techpechu