fixed ex08

gol
Daniel Knüttel 2018-11-07 15:19:36 +01:00
parent 48e8fd4546
commit 1a35fbb5f2
1 changed files with 1 additions and 1 deletions

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