"""Uncodemy Python Coding Assessment — hands-on practice kit.

Run with Python 3.11+:  python python_practice_kit.py
Fill the TODOs, then run again. This file contains no personal data.
These are self-checking practice exercises, not a verified certificate.
"""


def sum_even(numbers):
    """Return sum of even integers. Empty list -> 0."""
    # TODO
    pass


def word_count(text):
    """Count lowercase words separated by whitespace."""
    # TODO
    pass


def sum_valid_prices(values):
    """Sum non-negative numeric strings, skip invalid, round 2dp."""
    # TODO
    pass


def test_your_code():
    checks = [
        (sum_even([1, 2, 3, 4, 6]), 12, 'sum_even normal'),
        (sum_even([]), 0, 'sum_even empty'),
        (sum_even([-4, 3, 8, -2]), 2, 'sum_even negatives'),
        (word_count('Python python SQL'), {'python': 2, 'sql': 1}, 'word_count normal'),
        (word_count(''), {}, 'word_count empty'),
        (sum_valid_prices(['10.50', '5', 'bad', '-4']), 15.5, 'prices mixed'),
        (sum_valid_prices([]), 0.0, 'prices empty'),
    ]
    for result, expected, label in checks:
        print(('PASS' if result == expected else 'FAIL'), label, '| actual:', result)


if __name__ == '__main__':
    test_your_code()
