SHARE
TWEET

Untitled

a guest Jun 20th, 2019 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. myData=[['a',1,10],['b',2,20],['a',3,30],['a',4,40]]
  2.      
  3. print(row[0])
  4.  
  5.  
  6. if(row[0] not in uniqueLists):
  7.  
  8.     uniqueLists.append(row)
  9.  
  10. else:
  11.  
  12.     duplicatedLists.append(row)
  13.      
  14. uniqueLists=[['a',1,10],['b',2,20]]
  15.  
  16. duplicatedLists=[[['a',3,30],['a',4,40]].
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top