Periksa apakah string sama dengan string dalam daftar python
if any(x in paid[j] for x in d):
# do stuff
Comfortable Caterpillar
if any(x in paid[j] for x in d):
# do stuff