0 out of 464 challenges solved

Sum Length of Uppercase Names

Write a Python function `sum_uppercase_names_length` that takes a list of names (strings) and returns the sum of the lengths of the names that start with an uppercase letter. Names starting with lowercase letters should be excluded from the calculation.

#### Example Usage
```python [main.nopy]
sum_uppercase_names_length(['sally', 'Dylan', 'rebecca', 'Diana', 'Joanne', 'keith'])
# Output: 16

sum_uppercase_names_length(['php', 'res', 'Python', 'abcd', 'Java', 'aaa'])
# Output: 10

sum_uppercase_names_length(['abcd', 'Python', 'abba', 'aba'])
# Output: 6
```
def sum_uppercase_names_length(names):
    """
    Calculate the sum of the lengths of names starting with an uppercase letter.

    Args:
        names (list): A list of strings representing names.

    Returns:
        int: The sum of the lengths of valid names.
    """
    # Filter the names to include only those starting with an uppercase letter
    # Calculate the sum of the lengths of the filtered names
    pass