fork download
  1. x = [1, 2, 3, 4, 5, 2, 3, 4, 5, 6]
  2. y = [2, 2, 3, 3, 4, 2, 2, 3, 3, 4]
  3. xy = {(x[i], y[i]) for i in xrange(len(x))}
  4.  
  5. print xy
  6.  
Success #stdin #stdout 0.01s 7852KB
stdin
Standard input is empty
stdout
set([(1, 2), (6, 4), (5, 4), (3, 3), (3, 2), (4, 3), (2, 2), (5, 3)])