I have a list like this;
a=[['2019', '08'], ['2018', '10'], ['2019', '08'], ['2019', '08'], ['2018', '10'], ['2019', '02']]
How can I delete duplicates.
[['2019', '08'], ['2018', '10'], ['2019', '02']]
I have a list like this;
a=[['2019', '08'], ['2018', '10'], ['2019', '08'], ['2019', '08'], ['2018', '10'], ['2019', '02']]
How can I delete duplicates.
[['2019', '08'], ['2018', '10'], ['2019', '02']]
obviously if you don't know this Method. I highly recommand you start with this Implementation and get to know how this work and then move on to higher level implementation
a=[['2019', '08'], ['2018', '10'], ['2019', '08'], ['2019', '08'], ['2018', '10'], ['2019', '02']]
print(a)
b = []
for l in a:
if l not in b:
b.append(l)
print(b)
try to play here and get to know how this work because it is a simple Implementation which shows the basics of how the work should get done solving a simple problem like this