Skip to content

Commit 3b9b2a1

Browse files
authored
Update str_return_type_hint_example.py
1 parent 5fc9bc5 commit 3b9b2a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import random
22

3-
def get_game_recommendations(titles: list) -> str:
3+
def get_game_recommendation(titles: list) -> str:
44
return random.choice(titles)
55

66
game_titles_list = ["Dragon Quest", "Final Fantasy", "Age of Empires"]
7-
print(f"Random recommendation: {get_game_redommendation(game_titles_list)}")
7+
print(f"Random recommendation: {get_game_recommendation(game_titles_list)}")

0 commit comments

Comments
 (0)