Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

Commit 1892738

Browse files
Merge pull request #718 from cryptoracing/main
added a new feature
2 parents d7affbd + 4d4e2d0 commit 1892738

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/Coin Flip/coinflip.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ def main():
3434
# Ask the user if they want to play again
3535
while True:
3636
answer_y = input("Wanna play again? (yes/no): ")
37-
if answer_y.lower() == "no":
37+
if answer_y.lower() == "no" or answer_y.lower() == "n":
3838
flag = True
3939
break
40-
elif answer_y.lower() == "yes":
40+
elif answer_y.lower() == "yes" or answer_y.lower() == "y":
4141
break # if answer_y is "yes" then break out of only the innermost while loop and start the game again
4242
else:
4343
continue

0 commit comments

Comments
 (0)