Java Square Root Program In Python