mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 23:26:40 -08:00
Python: Add type annotations
This commit is contained in:
committed by
Alexander Wunschik
parent
b95a514e84
commit
83b3dc402c
@@ -117,7 +117,7 @@ def adjust_profits(wheel, m, profits):
|
||||
return profits
|
||||
|
||||
|
||||
def final_message(profits):
|
||||
def final_message(profits) -> None:
|
||||
if profits < 0:
|
||||
print("Pay up! Please leave your money on the terminal")
|
||||
elif profits == 0:
|
||||
@@ -126,7 +126,7 @@ def final_message(profits):
|
||||
print("Collect your winings from the H&M cashier.")
|
||||
|
||||
|
||||
def main():
|
||||
def main() -> None:
|
||||
profits = 0
|
||||
keep_betting = True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user