The program will be:
word = “eggplant
print(“Your word is !” + word + “!”)
for i in word:
INDENT HERE or TAB print( i + “!”)
What’s the information about
In Python, it’s important to maintain consistent indentation to indicate blocks of code. In this case, the print(i + “!”) statement is part of the for loop, so it needs to be indented. The standard practice is to use 4 spaces for each level of indentation.
word = “eggplant”
print(“Your word is !” + word + “!”)
for i in word:
print(i + “!”)