import math value = 87 sqrt = int(math.sqrt(value))remainder = value - (sqrt * sqrt) print(sqrt, remainder)
Standard input is empty
9 6
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!