Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
168 B
1
Indexable
Never
colors = ["bleu", "rouge", "vert", "jaune"]

length = 5
if length == 5:
    length = 4

    print(next((color for color in colors if len(color) >= length), None))