mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-26 04:41:52 -08:00
Python: Add type annotations
This commit is contained in:
committed by
Alexander Wunschik
parent
b95a514e84
commit
83b3dc402c
@@ -32,7 +32,7 @@ def fnr():
|
||||
return random.randint(1, 5)
|
||||
|
||||
|
||||
def main():
|
||||
def main() -> None:
|
||||
print_with_tab(33, "NUMBER")
|
||||
print_with_tab(15, "CREATIVE COMPUTING MORRISTOWN, NEW JERSEY")
|
||||
print()
|
||||
@@ -41,7 +41,7 @@ def main():
|
||||
|
||||
print_instructions()
|
||||
|
||||
points = 100
|
||||
points: float = 100
|
||||
|
||||
while points <= 500:
|
||||
print("GUESS A NUMBER FROM 1 TO 5")
|
||||
|
||||
Reference in New Issue
Block a user