Code a function that takes in an array of numbers and returns true or false depending on whether there are any duplicates or not.
Sigiloso
In Python, we can compare the input_list to list(set(input_list)). def duplicates(intArray): return intArray != list(set(intArray)) if __name__ == '__main__': print(duplicates([])) # returns False print(duplicates([1,2,3,4])) # returns False print(duplicates([1,2,3,3])) # returns True