how to for loop with two conditions with a list in python

Published --