Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisOwen101 committed Oct 10, 2024
1 parent 29fc45f commit aa861f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions longest.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
def find_longest(arr: list) -> str:
"""Find longest string"""
longest = arr[1]
longest = arr[0]
for i in range(1, len(arr)):
if len(arr[i]) > len(longest):
longest = arr[i]
return longest
return longest


if __name__ == "__main__":
Expand Down

0 comments on commit aa861f9

Please sign in to comment.