[Solved] I have a list, how can I split words in list to get each letter from list [closed]


You can try to use the two for approach

z = ["for", "core", "end"]
letters = []
for word in z:
    for element in word:
        letters.append(element)

print(letters)
#['f', 'o', 'r', 'c', 'o', 'r', 'e', 'e', 'n', 'd']

0

solved I have a list, how can I split words in list to get each letter from list [closed]