From aa861f9022652f2e91e0069f02912e478b0ae233 Mon Sep 17 00:00:00 2001 From: Christopher Owen Date: Thu, 10 Oct 2024 10:51:56 +0100 Subject: [PATCH] Fix build --- longest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/longest.py b/longest.py index 69a28ad..a8485ef 100644 --- a/longest.py +++ b/longest.py @@ -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__":