How about a
dictionary comprehension[
^]?
lst = list(input("list: ").strip().split())
lst = list({len(s): s for s in lst}.values())
print(lst)
NB: You need to split the input value unless you want your list to contain an entry per character, with all entries have a length of
1
.