colors = ["bleu", "rouge", "vert", "jaune"] length = 5 if length == 5: length = 4 print(next((color for color in colors if len(color) >= length), None))