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