Skip to content

Commit 9520fba

Browse files
committed
Chapter 5: solutions game_tosses.py: break a long line
1 parent 6192a00 commit 9520fba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

chapter5/solutions/game_tosses.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def play(start_amount):
2323
else:
2424
cur_amount -= loss_amount
2525
print('Tails! Current amount: {0}'.format(cur_amount))
26-
print('Game over :( Current amount: {0}. Coin tosses: {1}'.format(cur_amount, tosses))
26+
print('Game over :( Current amount: {0}. Coin tosses: {1}'.
27+
format(cur_amount, tosses))
2728

2829
if __name__ == '__main__':
2930
start_amount = float(input('Enter your starting amount: '))

0 commit comments

Comments
 (0)