lundi 30 juillet 2018

Multiple value checks with if condition python3

How to excecute mutiple value with if condition like below, i tried it but not working

if 'mydj-lb-foxdc01' or 'tsdj-lb-foxdc02' or 'mydj-lb-noivm01' or 'mydj-lb-noivm02' not in line:

Below is working while tried ..

if 'mydj-lb-foxdc01' not in line:

Aucun commentaire:

Enregistrer un commentaire