So in this piece of code
for c, a in enumerate(final): passed = check(a, start, (((c+1)*tries)*100/cap)) if passed: filtered_final.ap