def count_above(values, limit):
"""Return how many values are greater than limit."""
count = 0
for v in values:
if v > limit:
count += 1
return count
tests = [([5, 10, 15], 9, 2), ([12, 3, 7], 9, 1), ([4, 9, 20], 9, 1),
([], 9, 0), ([9, 9], 9, 0), ([-1, -5], -3, 1)]
for values, limit, expected in tests:
actual = count_above(values, limit)
result = "pass" if actual == expected else "FAIL"
print(values, limit, "expected", expected, "actual", actual, result)