Проверьте, равна ли строка строку в списке Python

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