summaryrefslogtreecommitdiff
path: root/Problem57.py
diff options
context:
space:
mode:
authorJoshua Drake <joshua.drake@ditchwitch.com>2023-04-07 08:13:49 -0500
committerJoshua Drake <joshua.drake@ditchwitch.com>2023-04-07 08:13:49 -0500
commit1161f9a034de06a63538e3a9a0b7717098c744d9 (patch)
tree55bb842b2daa4f096eb7916a8d3630426fc1c376 /Problem57.py
Initial CommitHEADmaster
Diffstat (limited to 'Problem57.py')
-rw-r--r--Problem57.py9
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