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

@@ -1,16 +1,16 @@
import random
def print_n_whitespaces(n: int):
def print_n_whitespaces(n: int) -> None:
print(" " * n, end="")
def print_n_newlines(n: int):
def print_n_newlines(n: int) -> None:
for _ in range(n):
print()
def main():
def main() -> None:
print_n_whitespaces(32)
print("BULLSEYE")
print_n_whitespaces(15)