0 out of 464 challenges solved
Write a Python function `first_repeated_char` that takes a string as input and returns the first character that is repeated in the string. If no character is repeated, return `None`. #### Example Usage ```python [main.nopy] print(first_repeated_char("abcabc")) # Output: "a" print(first_repeated_char("abc")) # Output: None print(first_repeated_char("123123")) # Output: "1" ```
def first_repeated_char(input_string): """ Find the first repeated character in the given string. Args: input_string (str): The string to search for repeated characters. Returns: str or None: The first repeated character, or None if no character is repeated. """ # Placeholder for the solution pass