mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-28 05:33:48 -08:00
Clean Code: Apply flake8-simplify to Python
Also flake8-comprehensions which was added to the CI For flake8-simplify, there are a few false-positives, e.g. https://github.com/MartinThoma/flake8-simplify/issues/115
This commit is contained in:
@@ -81,9 +81,7 @@ if Z != "NO":
|
||||
print("THE BETTER YOUR CHANCES ARE.")
|
||||
print_n_newlines(2)
|
||||
|
||||
D = {}
|
||||
D[5] = 1
|
||||
D[4] = 1
|
||||
D = {4: 1, 5: 1}
|
||||
LS = ["", "SUPERB", "GOOD", "FAIR", "POOR", "AWFUL"]
|
||||
A = random.randint(1, 5)
|
||||
print(f"YOU HAVE DRAWN A {LS[A]} BULL.")
|
||||
|
||||
Reference in New Issue
Block a user