From 73be8cf0c5d7fd12857586fc1c0af0bc677a28d7 Mon Sep 17 00:00:00 2001 From: Christopher Owen Date: Thu, 10 Oct 2024 10:50:29 +0100 Subject: [PATCH] Fix build --- longest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/longest.py b/longest.py index 13d1a6b..5b05fe7 100644 --- a/longest.py +++ b/longest.py @@ -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__":