Skip to content

Commit

Permalink
Add type hints to my code
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisOwen101 committed Oct 10, 2024
1 parent b7240b4 commit 4020c3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion longest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
def find_longest(arr):
def find_longest(arr: list) -> str:
longest = arr[1]
for i in range(1, len(arr)):
if len(arr[i]) > len(longest):
Expand Down

0 comments on commit 4020c3b

Please sign in to comment.