On this page
article
Strings Exercise #7
Practice strings — exercise 7 of 40.
Topic: Strings
Difficulty: Beginner
Problem
Write a solution for Strings Exercise #7:
Implement a function solve_strings_7(data) that processes the input according to strings concepts from the curriculum.
Example input: data = [strings_example_7]
Expected: A transformed result demonstrating strings skills.
Constraints
- Use idiomatic Python 3.10+
- Handle empty input gracefully
- Do not mutate input unless specified
Hint
Hint
Review Strings exercises and the related chapter in the Learning Path. Consider edge cases: empty collections, None, zero, negative numbers.
Test Yourself
# Write tests before implementing
assert solve_strings_7([]) is not None # define expected behavior
Next exercise: Strings Exercise #8