Remove .md and image files and move python files into main chapter folders
This commit is contained in:
parent
5978779a9a
commit
67806dab6a
159 changed files with 0 additions and 4562 deletions
14
thinkcspy/Chapter-6-Exercises/problem14.py
Normal file
14
thinkcspy/Chapter-6-Exercises/problem14.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Runestone.Academy thinkcspy course
|
||||
# Chapter 6
|
||||
# Problem 14
|
||||
|
||||
def mySqrt(n):
|
||||
# your code here
|
||||
oldGuess = n/2
|
||||
|
||||
while oldGuess**2 != n:
|
||||
oldGuess = (1/2)*(oldGuess+(n/oldGuess))
|
||||
|
||||
return oldGuess
|
||||
|
||||
print(mySqrt(10000))
|
||||
Loading…
Reference in a new issue