unique returns a set with all the unique elements of
sequence. You can assume that sequence is a valid sequence with
elements of any immutable type.
You cannot use the set function to convert the sequence to a set.
def test_unique_obvious(self):
# Assign test inputs
test_input = [
[1, 0, 1, 1, 0, 2],
["banana", "apple", "orange"],
[(0, 0), (0, 0), (0, 1)],
]
# Assign test ouputs
test_output = [
{1, 0, 2},
{"banana", "apple", "orange"},
{(0, 0), (0, 1)}
]