We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6192a00 commit 9520fbaCopy full SHA for 9520fba
chapter5/solutions/game_tosses.py
@@ -23,7 +23,8 @@ def play(start_amount):
23
else:
24
cur_amount -= loss_amount
25
print('Tails! Current amount: {0}'.format(cur_amount))
26
- print('Game over :( Current amount: {0}. Coin tosses: {1}'.format(cur_amount, tosses))
+ print('Game over :( Current amount: {0}. Coin tosses: {1}'.
27
+ format(cur_amount, tosses))
28
29
if __name__ == '__main__':
30
start_amount = float(input('Enter your starting amount: '))
0 commit comments