$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · easy · #300

What goes in the blank?

import math
# whole-number square root: 17 -> 4
r = math.____(n)

Answer: isqrt (also accepted: isqrt, math.isqrt, isqrt())

math.isqrt returns the floor of the square root using exact integer arithmetic, safe for huge n.
Play Problem Solving ▸