mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-01-06 10:05:45 -08:00
'Refactored by Sourcery'
This commit is contained in:
@@ -43,9 +43,7 @@ def play_game() -> None:
|
||||
|
||||
print(f"YOUR NUMBER WAS {d}, RIGHT?")
|
||||
|
||||
response = get_yes_or_no()
|
||||
|
||||
if response:
|
||||
if response := get_yes_or_no():
|
||||
print("HOW ABOUT THAT!!")
|
||||
else:
|
||||
print("I FEEL YOUR ARITHMETIC IS IN ERROR.")
|
||||
|
||||
Reference in New Issue
Block a user