from collections import Counter
results = [“pass”, “pass”, “fail”, “pass”, “fail”, “pass”]
stats = Counter(results)
print(dict(stats))
from collections import Counter
results = [“pass”, “pass”, “fail”, “pass”, “fail”, “pass”]
stats = Counter(results)
print(dict(stats))