Advertisement
furas

I don't know ???

Jul 2nd, 2018
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. problem_set = {2, 4, 7}
  2. support_set = {6, 5, 2}
  3.  
  4. new_problem_list = list()
  5. new_support_list = list()
  6.  
  7. for a, b in zip(list(problem_set), list(support_set)):
  8.     print('compare:', a, 'with', b)
  9.    
  10.     new_problem_list.append( min(a, b) )
  11.     new_support_list.append( max(a, b) )
  12.  
  13. print(new_problem_list, new_support_list)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement