How to print out the letters of a word, one on each line, with three asterisks before and after the word

As simple as that:

word = input("Enter a word: ")
print("***")
for letter in word:
    print(letter)
print("***")

Leave a Comment