The most common answer is:
word = "eggplant"
# Give the word to spell
print("Your word is: " + word + ".")
# Spell the word with a for loop here!
def spell_word():
for letter in word:
print(letter + "!")
spell_word()
This code will first inform the user of the word to be spelled (“eggplant”) and then proceed to spell it out, printing each letter followed by an exclamation mark, thanks to the spell_word
function.