lista = []
basta = "basta"
c = 1
i = 0
while c>0:
    parola = input("Inserisci una parola")
    if parola == basta:
        c = c + 1
    else:
        len = len(parola)
        while len>i:
            if parola != lista[i]:
                lista.append(parola)
            i = i + 1

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: