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

@@ -14,11 +14,11 @@ appeared one day one a computer at DEC.
from random import randint
def throw_dice():
def throw_dice() -> int:
return randint(1, 6) + randint(1, 6)
def main():
def main() -> None:
print(" " * 33 + "Craps")
print(" " * 15 + "Creative Computing Morristown, New Jersey")
print()