Answer:
while True:
text = input("Input line of text: ")
if text == "Quit" or text == "quit" or text == "q":
print("End of the program")
break
reverseText = text[-1::-1]
print('The reverse text is: ', reverseText)
Step-by-step explanation:
We created a while loop that ask for the user input, the process repeats until the user enters "Quit" or "quit" or "q" (see the if statement), to reverse the text we use text[-1::-1], because string are arrays we use array manipulation to reverse the text, the first -1 represents the the last item in the string, :: means all the array and the last -1 represent to go through the array one by one in reverse order.