[Solved] Adding first character of a string to each of the other characters [closed]


A simple way to do it is to iterate over the string, that will give you each letter separately:

alphabet = "abcdefghijklmnopqrstuvwxyz"
for letter in alphabet:
    print("a" + letter)

solved Adding first character of a string to each of the other characters [closed]