Aug-26-2020, 06:17 AM
the question is:
Implement the unique_names method. When passed two lists of names, it will return a list containing the names that appear in either or both lists. The returned list should have no duplicates.
for eg.,calling unique_names(['Ava','Emma','Olivia'],['Olivia','Sophia','Emma'] should return a list containing Ava, Emma, Olivia, and Sophia in any order.
Implement the unique_names method. When passed two lists of names, it will return a list containing the names that appear in either or both lists. The returned list should have no duplicates.
for eg.,calling unique_names(['Ava','Emma','Olivia'],['Olivia','Sophia','Emma'] should return a list containing Ava, Emma, Olivia, and Sophia in any order.