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 b_input(promptstring): # emulate BASIC input. It rejects non-numeric values
return int(x)
def main():
def main() -> None:
seed()
title = "HAMURABI"
title = title.rjust(32, " ")
@@ -45,7 +45,7 @@ def main():
print("FOR A TEN-YEAR TERM OF OFFICE.\n")
D1 = 0
P1 = 0
P1: float = 0
year = 0
population = 95
grain_stores = 2800