From 1161f9a034de06a63538e3a9a0b7717098c744d9 Mon Sep 17 00:00:00 2001 From: Joshua Drake Date: Fri, 7 Apr 2023 08:13:49 -0500 Subject: Initial Commit --- Problem57.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Problem57.py (limited to 'Problem57.py') 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 -- cgit v1.2.3