Python: Type annotations

This commit is contained in:
Martin Thoma
2022-04-02 10:06:15 +02:00
parent c8f86531e9
commit ac184fec42
25 changed files with 241 additions and 245 deletions

View File

@@ -50,7 +50,7 @@ def do_quiz() -> None:
print(" NOT BAD.")
def ask_player(question, answer):
def ask_player(question: str, answer) -> int:
print(question)
player_answer = float(input())