Python: Add type annotations

This commit is contained in:
Martin Thoma
2022-03-19 22:10:26 +01:00
committed by Alexander Wunschik
parent b95a514e84
commit 83b3dc402c
79 changed files with 509 additions and 461 deletions

View File

@@ -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")