From 1a35fbb5f205b518615be03826a8d5553cee8f33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kn=C3=BCttel?= Date: Wed, 7 Nov 2018 15:19:36 +0100 Subject: [PATCH] fixed ex08 --- ex_08.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ex_08.py b/ex_08.py index 8b3e801..314ff78 100644 --- a/ex_08.py +++ b/ex_08.py @@ -11,7 +11,7 @@ def peter_coin_series(randf = random.randint): for k in count(1): if(randf(0, 1) < 0.5): return (result, k) - result += 2**k + result = 2**k