mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-31 15:07:42 -08:00
Simplify Python Code
print_with_tab / print_with_whitespace is trivial with Python string formatting and was mostly used in only 2 lines.
This commit is contained in:
@@ -80,7 +80,7 @@ def main() -> None:
|
||||
player_has_won = False
|
||||
while (guess_number < MAX_GUESSES) and not player_has_won:
|
||||
|
||||
print("")
|
||||
print()
|
||||
guess = get_guess()
|
||||
guess_number += 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user