demo_ref_math_isqrt.py:
# Import math Library import math # Examples to print the square root of different numbers print (math.sqrt(10)) print (math.sqrt (12)) print (math.sqrt (68)) print (math.sqrt (100)) # Round square root numbers downward to the nearest integer print (math.isqrt(10)) print (math.isqrt (12)) print (math.isqrt (68)) print (math.isqrt (100))
C:\Users\My Name>python demo_math_isqrt.py
3.1622776601683795
3.4641016151377544
8.246211251235321
10.0
3
3
8
10