fork(1) download
  1. values = []
  2.  
  3. a = [('SRV', 'CLIENT'),('SRV1', 'CLIENT'),('SRV2', 'CLIENT')]
  4. b = [('SRV', 'CLIENT'),('SRV1', 'CLIENT'),('SRV3', 'CLIENT')]
  5.  
  6. gap = []
  7. for row in a:
  8. if row[0] not in b:
  9. gap.append(row)
  10.  
  11. print(gap)
Success #stdin #stdout 0.03s 63680KB
stdin
Standard input is empty
stdout
[('SRV', 'CLIENT'), ('SRV1', 'CLIENT'), ('SRV2', 'CLIENT')]