fixed ex08

This commit is contained in:
Daniel Knüttel 2018-11-07 15:19:36 +01:00
parent 48e8fd4546
commit 1a35fbb5f2

View File

@ -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