Medium
Raise an Error
Write
sqrt_int(n) that raises ValueError('negative') for negative n and otherwise returns the integer square root (math.isqrt). Print the result or Error: negative.Input
One integer.
Output
One line.
Sample 1
Input
16
Output
4
Sample 2
Input
-4
Output
Error: negative
Output appears here