We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e3280e commit 4066631Copy full SHA for 4066631
1 file changed
type_hint_arrow_samples/str_return_type_hint_example.py
@@ -1,8 +1,9 @@
1
import random
2
3
4
-def get_game_recommendation(titles: list) -> str:
5
- return random.choice(titles)
+def get_game_recommendation(list) -> str:
+ return random.choice(list)
6
+
7
8
game_titles_list = ["Dragon Quest", "Final Fantasy", "Age of Empires"]
9
print(f"Random recommendation: {get_game_recommendation(game_titles_list)}")
0 commit comments