0 out of 464 challenges solved
Write a Python function `max_run_uppercase` that takes a string as input and returns the length of the longest consecutive sequence of uppercase characters in the string. #### Example Usage ```python [main.nopy] print(max_run_uppercase("GeMKSForGERksISBESt")) # Output: 5 print(max_run_uppercase("PrECIOusMOVemENTSYT")) # Output: 6 print(max_run_uppercase("GooGLEFluTTER")) # Output: 4 ``` #### Constraints - The input string will only contain alphabetic characters. - The function should return `0` if there are no uppercase characters in the string.
def max_run_uppercase(test_str): """ Find the maximum run of consecutive uppercase characters in the given string. Args: test_str (str): The input string. Returns: int: The length of the longest run of uppercase characters. """ # Initialize variables to track the current and maximum runs # Placeholder for the solution pass