Sep-30-2017, 07:10 PM
i want to check if a string contains a substring from a list of string i provide, at the moment i am doing this:
if 'U19' in echipa1 or 'U20' in echipa1 or 'U17' in echipa1 or 'U21' in echipa1 : print ("Echipele nu sunt bune")i want to create a list and check from it:
NotOklist = ('U19','U20','U17','U21') if echipa1 in any(NotOKlist) print ("Echipele nu sunt bune")