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