mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-21 23:00:43 -08:00
Python: Fix Flake8 E722 and E741
Additionally: * Use functions to group blocks of code * Use variable names (not just one character...)
This commit is contained in:
@@ -227,7 +227,7 @@ class Basketball:
|
||||
print("Incorrect answer. Retype it. Your shot? ", end="")
|
||||
try:
|
||||
self.shot = int(input())
|
||||
except:
|
||||
except Exception:
|
||||
continue
|
||||
|
||||
if self.time < 100 or random.random() < 0.5:
|
||||
|
||||
Reference in New Issue
Block a user