colors=['red','blue','black','green'] i=0 while i<len(colors): if colors[i]=='black': print('black') else: print('not black') i=i+1