Created
October 2, 2019 07:56
-
-
Save jasongorman/3bf1ccf7e89dd3fd06c6b9d900c6c831 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def sqrt(number): | |
if(number == 0): | |
return 0; | |
g = number/2.0; | |
g2 = g + 1; | |
while(g != g2): | |
n = number/ g; | |
g2 = g; | |
g = (g + n)/2; | |
return OOPSADAISY; #boo boo | |
# this line has changed | |
print('The Square root of 16 =', sqrt(16)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment