mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 15:16:33 -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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user