Write a function calledhas_duplicatesthat takes a string parameter and returnsTrueif the string has any repeated characters. Otherwise, it should… Write a function called has_duplicates that takes a string parameter and returns True if the string has any repeated characters. Otherwise, it should return False. Implement has_duplicates by creating a histogram using...