images = [f for f in files if f[2].lower() in IMAGE_TYPES]anims = [f for f in files if f not in images]
Nice when the condition is longer, such as in your example. The reader doesn't have to figure out the negative condition and whether it captures all other cases.