mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-27 13:14:15 -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:
@@ -86,7 +86,7 @@ class Stock_Market:
|
||||
for stock in self.data.keys():
|
||||
try:
|
||||
new_holdings.append(int(input(f"{stock}? ")))
|
||||
except:
|
||||
except Exception:
|
||||
print("\nINVALID ENTRY, TRY AGAIN\n")
|
||||
break
|
||||
if len(new_holdings) == 5:
|
||||
|
||||
Reference in New Issue
Block a user