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

@@ -65,7 +65,7 @@ def query_bets():
while betCount <= 0:
try:
betCount = int(input("HOW MANY BETS? "))
except:
except Exception:
...
bet_IDs = [-1] * betCount
@@ -87,7 +87,7 @@ def query_bets():
if id > 0 and id <= 50 and val >= 5 and val <= 500:
bet_IDs[i] = id
bet_Values[i] = val
except:
except Exception:
...
return bet_IDs, bet_Values