fork download
  1. data1 = [
  2. (1, 2, 3),
  3. (4, 2, 1)
  4. ]
  5.  
  6. data2 = [
  7. (2, 4),
  8. (8, 9),
  9. (1, 3)
  10. ]
  11.  
  12. union_data = data1 + data2
  13.  
  14. print("Union Data:")
  15. for row in union_data:
  16. print(row)
  17.  
Success #stdin #stdout 0.03s 9592KB
stdin
Standard input is empty
stdout
Union Data:
(1, 2, 3)
(4, 2, 1)
(2, 4)
(8, 9)
(1, 3)