is there any possibility of this in python. Is it possible to put it in one if not to write

if a not in c: if b not in c: 

thank!

  • a not in c or b not in c - eri
  • OK, and not in c does it work? - Knight120387
  • works. corrected - eri
  • @eri thanks a lot! - Knight120387
  • if 'Sponsored' not in text or 'Ad' not in text: hotels [text] = link the key still appears with the word Sponsored ... what am I writing wrong? if I leave only if "Sponsored" not in text, then there is no key (( - Knight120387

1 answer 1

Like this :

a not in c and b not in c