mardi 22 juin 2021

how to find many character in python without using OR? [duplicate]

a = '/dvi/abcbbb'

if ('/dev/' in a) or ('/dv/' in a) or ('/dvi/' in a):
     print(a)
/dvi/abcbbb

Can we do it without the OR statements in Python ?

Aucun commentaire:

Enregistrer un commentaire