We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ff41d9 commit c5a15adCopy full SHA for c5a15ad
type_hint_arrow_samples/str_return_type_hint_example.py
@@ -1 +1,7 @@
1
+import random
2
3
+def get_game_recommendation(titles: list) -> str:
4
+ return random.choice(titles)
5
+
6
+game_titles_list = ["Dragon Quest", "Final Fantasy", "Age of Empires"]
7
+print(f"Random recommendation: {get_game_recommendation(game_titles_list)}")
0 commit comments