This episode of Python Programming Practice shows two approaches to LeetCode LeetCode - #69 Sqrt(x)
https://leetcode.com/problems/sqrtx/

This is an easy difficulty problem.

Note: on line 7, the code should be "return x"!

Note that the intent of this series to help viewers think through approaches to problems, not to provide copy/paste access to code that will pass LeetCode tests.