LearnPy Hub
← Modules & the Standard Library problems
Easy

Whole Square Root

Use from math import isqrt. Read n, print isqrt(n), then True if n is a perfect square.

Input

One integer ≥ 0.

Output

Two lines.

Sample 1

Input
17
Output
4
False

Sample 2

Input
16
Output
4
True
solution.py
Output appears here
Whole Square Root · Python practice problem · LearnPy Hub