I am working on a little practice problem where the program must accept words from the user until the user enters a simple space, and put them in a list removing duplicates. I have found out how to do it but I would like to incorporate a list comprehension. The first block is the working program, the second provides a `SyntaxError`

```
userinput = None
lst = []
while userinput != " ":
    userinput = input("enter a word: ")
    if userinput not in lst:
        lst.append(userinput)
for word in lst:
    print(word)

```

```
userinput = None
lst = []
while userinput != " ":
    userinput = input("enter a word: ")
    [lst.append(userinput) if userinput not in lst] # Here is my comprehension
for word in lst:
    print(word)

```