On this page
article
OOP Exercise #9
Practice oop — exercise 9 of 40.
Topic: OOP
Difficulty: Beginner
Problem
Write a solution for OOP Exercise #9:
Implement a function solve_oop_9(data) that processes the input according to oop concepts from the curriculum.
Example input: data = [oop_example_9]
Expected: A transformed result demonstrating oop skills.
Constraints
- Use idiomatic Python 3.10+
- Handle empty input gracefully
- Do not mutate input unless specified
Hint
Hint
Review OOP 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_oop_9([]) is not None # define expected behavior
Next exercise: OOP Exercise #10