Untitled
unknown
plain_text
3 years ago
168 B
7
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))