Skip to content

Commit 4f7e271

Browse files
authored
Create simple_type_hint_example.py
1 parent 06b4238 commit 4f7e271

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
def get_number_of_titles(list) -> int:
2+
return len(list)
3+
4+
game_titles_list = ["Dragon Quest", "Final Fantasy", "Age of Empires"]
5+
print(f"Number of titles: {get_number_of_titles(game_titles_list)}")

0 commit comments

Comments
 (0)