Untitled
unknown
plain_text
2 years ago
168 B
5
Indexable
colors = ["bleu", "rouge", "vert", "jaune"] length = 5 if length == 5: length = 4 print(next((color for color in colors if len(color) >= length), None))
Editor is loading...
colors = ["bleu", "rouge", "vert", "jaune"] length = 5 if length == 5: length = 4 print(next((color for color in colors if len(color) >= length), None))