79790043

Date: 2025-10-14 09:49:52
Score: 0.5
Natty:
Report link

You can try dict.fromkeys()

list1 = [1, 2, 3, 4]
list2 = [3, 4, 5, 6]

merged = list(dict.fromkeys(list1 + list2))
print(merged) 


output

[1, 2, 3, 4, 5, 6]
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Bhargav