Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- myData=[['a',1,10],['b',2,20],['a',3,30],['a',4,40]]
- print(row[0])
- if(row[0] not in uniqueLists):
- uniqueLists.append(row)
- else:
- duplicatedLists.append(row)
- uniqueLists=[['a',1,10],['b',2,20]]
- duplicatedLists=[[['a',3,30],['a',4,40]].
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement