Run
x = ['apple', 'fig', 'mango', 'kiwi'] longest = max(x, key=len) print(longest)
Output