The program illustrates the use of loops and logical operators.
The program in Python, where comments are used to explain each line is as follows:
#This creates a list to hold words inputted by the user
wordList = []
#This gets the first input from the user
word = input(" ")
#The following operations are repeated until the user enters d, done or Done
while (word!="d" and word!="done" and word!="Done"):
#This appends the word from the user to the list
wordList.append(word)
#This gets another input from the user
word = input(" ")
#This iterates through the list
for i in range(len(wordList)):
#This reverses and print each word in the list
print(wordList[i][::-1])
At the end of the program, all words inputted by the user would be reversed and printed
See attachment for sample run
Read more about loops and logical operators at:
https://brainly.com/question/20162777