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:
Martin Thoma
2022-03-12 08:17:03 +01:00
parent fc9ea8eaf9
commit af88007734
18 changed files with 846 additions and 764 deletions

View File

@@ -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: