I have an input as: [a, b, c, *]
If my input has * then I need to create 29 different versions (29 letters in Turkish alphabet) of the input list like below. I also need to remove * from new arrays:
harfler[1]: ['a', 'b', 'c', 'a'] harfler[2]: ['a', 'b', 'c', 'b'] . . . harfler[29]: ['a', 'b', 'c', 'z']
I tried to use for loop but didn't get what I want. How can I achieve this?
letters=input("Enter the letters")
alphabet=['a','b','c']
letters_array=[]
letters=letters.join(alphabet)
for character in alphabet:
letters=letters.join(alphabet)
letters_array.append(letters)
print(letters_array)