Write has_duplicates(items) returning True if any value appears more than once.
has_duplicates(items)
True
has_duplicates([1, 2, 3, 1]) → True
has_duplicates([1, 2, 3]) → False
Submit runs 4 tests, including hidden edge cases.
Run your code to see the output here.