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 216a633 commit 73be8cf
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,9 +1,9 @@
def find_longest(arr):
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 73be8cf

Please sign in to comment.