mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 23:26:40 -08:00
Clean Code: Python
Fix issues found by flake8-bugbear: * Unused loop variables * assert statements in non-test code * mixing test code with production code * mark one excessive test which takes ~10min to run as 'slow'
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import random
|
||||
import time
|
||||
|
||||
|
||||
def print_n_whitespaces(n: int):
|
||||
@@ -179,8 +180,7 @@ while not (Y > 0):
|
||||
# 970
|
||||
X = random.randint(1, 6)
|
||||
print()
|
||||
for delay in range(2000):
|
||||
pass
|
||||
time.sleep(2)
|
||||
|
||||
print("I ROLLED A", X)
|
||||
if X == 1:
|
||||
|
||||
Reference in New Issue
Block a user