My excersise is to output list without occurring in the list.
I made it, but there is another condition which I do not really understand and it gives me an error.
Condition:
It seems that I have Null as an element how to work with that for example to delete it before it goes with dict.fromkeys?
I made it, but there is another condition which I do not really understand and it gives me an error.
Condition:
0 <= LinkedListNode[i].val <= 1000
def makelist(main = [3, 4, 3, 2, 6, 1, 2, 6]): return list(dict.fromkeys(main)) for x in makelist(): print(x)Error:
TypeError: 'SinglyLinkedListNode' object is not iterableEdit:
It seems that I have Null as an element how to work with that for example to delete it before it goes with dict.fromkeys?