"""A synthetic Python learning example. No files or network are accessed."""

items = [("Notebook", 450), ("Pen", 125), ("Folder", 225)]


def total_cents(rows):
    total = 0
    for name, cents in rows:
        total += cents
    return total


if __name__ == "__main__":
    total = total_cents(items)
    print(f"Items: {len(items)}")
    print(f"Total: {total // 100}.{total % 100:02d}")
    assert total == 800
