mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-23 07:29:02 -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:
@@ -91,7 +91,7 @@ def main() -> None:
|
||||
phrase += section[random.randint(0, len(section) - 1)]
|
||||
|
||||
print(phrase)
|
||||
print("")
|
||||
print()
|
||||
|
||||
response = input("? ")
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user