Run
input = ['apple', 'banana', 'cherry'] list_1 = [len(x) for x in input] print(list_1)
Output