Dec-27-2020, 08:24 PM
(This post was last modified: Dec-27-2020, 08:24 PM by akanowhere.)
(Dec-27-2020, 08:17 PM)buran Wrote: Let's make the terminology right.
There are no repeating elements in this list. It's a list of lists. There are repeating elements in the list elements (i.e. in the sublists). Then this is not a mapping like dict. There are no key value pairs.
Finally - show what expected output is and what have you tried so far.
Discar the repeated element in sub list[4]
1
list = [['seg', 'João', 3585], ['qui', 'João', 3847], ['seg', 'João', 3847], ['qua', 'João', 3913], ['qua', 'João', 3585]]1
Output:list = [['seg', 'João', 3585], ['qui', 'João', 3847], ['seg', 'João', 3847], ['qua', 'João', 3913]]