results = [“pass”, “pass”, “fail”, “pass”, “fail”, “pass”]
stats = {}
for result in results:
if result not in stats:
stats[result] = 0
stats[result] += 1
print(stats)
results = [“pass”, “pass”, “fail”, “pass”, “fail”, “pass”]
stats = {}
for result in results:
if result not in stats:
stats[result] = 0
stats[result] += 1
print(stats)