0 out of 464 challenges solved

Extract Strings by Length

Write a function `extract_string(strings, length)` that takes a list of strings and an integer `length` as input and returns a list of strings from the input list that have exactly the specified length.

#### Example Usage
```python [main.nopy]
extract_string(['Python', 'list', 'exercises', 'practice', 'solution'], 8)
# Output: ['practice', 'solution']

extract_string(['Python', 'list', 'exercises', 'practice', 'solution'], 6)
# Output: ['Python']

extract_string(['Python', 'list', 'exercises', 'practice', 'solution'], 9)
# Output: ['exercises']
```
def extract_string(strings, length):
    """
    Extract strings of a specified length from a list of strings.

    Args:
        strings (list): A list of string values.
        length (int): The desired length of strings to extract.

    Returns:
        list: A list of strings with the specified length.
    """
    # Implement the function logic here
    pass