“Suchstring -Array Python” Code-Antworten

Suchstring -Array Python

some_list = ['abc-123', 'def-456', 'ghi-789', 'abc-456']
if any("abc" in s for s in some_list):
    # whatever
Yellowed Yacare

Suchstring -Array Python

my_list = ['abc-123', 'def-456', 'ghi-789', 'abc-456']
Yellowed Yacare

Ähnliche Antworten wie “Suchstring -Array Python”

Fragen ähnlich wie “Suchstring -Array Python”

Weitere verwandte Antworten zu “Suchstring -Array Python” auf Python

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen