mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-26 12:51:29 -08:00
Python: Type annotations
This commit is contained in:
@@ -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())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user