diff options
Diffstat (limited to 'Problem57.py')
-rw-r--r-- | Problem57.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Problem57.py b/Problem57.py new file mode 100644 index 0000000..bfda522 --- /dev/null +++ b/Problem57.py @@ -0,0 +1,9 @@ +#unfinished +def halve(iteratations): + half = 1 + n = 1/2 + for x in range(0,iteratations): + n = n/2 + half = half + return 1 + n +print(halve(0))
\ No newline at end of file |