strings = ['hello', 'world', 'python', 'programming'] lengths = [len(s) for s in strings] print(lengths) # Output: [5, 5, 6, 11]