# Counting loops as Python writes them (D188): an int that a loop's body only increases by
# literals (any amounts: a step adds at most the most along one path through the body), over
# a list, a str or a range, proves without an invariant (the loop states the counter's bounds
# from its steps). Its output is CPython's.


def count_big(xs: list[int]) -> int:
    n = 0
    for x in xs:
        if x > 10:
            n += 1
    return n


def score(xs: list[int]) -> int:
    n = 0
    for x in xs:
        if x > 10:
            n += 100
        else:
            n += 1
    return n


def main() -> None:
    xs: list[int] = [3, 12, 40, 7]
    s = "a,b,,c"
    commas = 0
    for ch in s:
        if ch == ",":
            commas += 1
    total = 0
    for i in range(10):
        if i % 3 == 0:
            total += 2
    print(count_big(xs), commas, total, score(xs))


if __name__ == "__main__":
    main()
