aboutsummaryrefslogtreecommitdiff
path: root/challenge-052/user-person/python/ch-2.py
diff options
context:
space:
mode:
authoruser-person <60802990+user-person@users.noreply.github.com>2020-03-29 13:28:43 -0400
committerGitHub <noreply@github.com>2020-03-29 13:28:43 -0400
commit57d5bc206530efe100646a8d60b0fe379235b569 (patch)
tree556084e7f547beff3634b11e0477aa78e716ec20 /challenge-052/user-person/python/ch-2.py
parentf5c036d0eeb77b3dacfd9b2f42916e2fe7b7399b (diff)
parent606470083c840a68f73eff57bf7668ebd169c2a6 (diff)
downloadperlweeklychallenge-club-57d5bc206530efe100646a8d60b0fe379235b569.tar.gz
perlweeklychallenge-club-57d5bc206530efe100646a8d60b0fe379235b569.tar.bz2
perlweeklychallenge-club-57d5bc206530efe100646a8d60b0fe379235b569.zip
Merge branch 'master' into branch-for-challenge-053
Diffstat (limited to 'challenge-052/user-person/python/ch-2.py')
-rwxr-xr-xchallenge-052/user-person/python/ch-2.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/challenge-052/user-person/python/ch-2.py b/challenge-052/user-person/python/ch-2.py
index 0431509ebc..da402bb7db 100755
--- a/challenge-052/user-person/python/ch-2.py
+++ b/challenge-052/user-person/python/ch-2.py
@@ -2,7 +2,6 @@
###########################################################################
# script name: ch-2.py #
-# Thu Mar 19 14:51:04 2020 | 1584643864 #
# #
# https://github.com/user-person #
# #
@@ -70,7 +69,7 @@ def playerChoice():
takeCoin( 'f', 'player')
continue
- fl = input()
+ fl = input('> ')
if fl == 'f' or fl == 'l':
takeCoin( fl, 'player')
@@ -123,7 +122,7 @@ while len(coins):
if bank['computer'] > bank['player']:
print('Computer Wins. Computer: L ' + '{:.2f}'.format(bank['computer']) \
- + ' Player: L ' + '{:.2f}'.format(bank['player']))
+ + ' Player: L ' + '{:.2f}'.format(bank['player']) + '\n')
else:
print('Player Wins. Player: L ' + '{:.2f}'.format(bank['player']) \
- + ' Computer: L ' + '{:.2f}'.format(bank['computer']))
+ + ' Computer: L ' + '{:.2f}'.format(bank['computer']) + '\n')