Vérifiez si la chaîne est égale à la chaîne dans la liste Python

if any(x in paid[j] for x in d):
  # do stuff
Comfortable Caterpillar