Skip to content

Instantly share code, notes, and snippets.

@Risyandi
Last active January 9, 2020 14:13
Show Gist options
  • Save Risyandi/0e7832a92625b6e50517aedd136c58fd to your computer and use it in GitHub Desktop.
Save Risyandi/0e7832a92625b6e50517aedd136c58fd to your computer and use it in GitHub Desktop.
Jawaban soal data engineer Jabar Digital Services
def unique_names(names1, names2):
set_Name1 = set(names1)
set_Name2 = set(names2)
return list(set_Name1.union(set_Name2))
names1 = ["Ava", "Emma", "Olivia"]
names2 = ["Olivia", "Sophia", "Emma"]
print(unique_names(names1, names2)) # should print Ava, Emma, Olivia, Sophia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment