I want to print all elements in this list in reversed order and every element in this list must be on a new line.
For example if the list is ['i', 'am', 'programming', 'with', 'python'] it should print out:
python
with
programming
am
i
What is the best way to do this?

```
def list():
    words = []
    while True:
        output = input("Type a word: ")
        if output == "stop":
            break
        else:
            words.append(output)
    for elements in words:
        print(elements)
list()

```