str1 = "Hello" str2 = "World" common_letters = [letter for letter in str1 if letter in str2] print(common_letters) # Output: ['l', 'l', 'o']