Vérifiez si deux listes ont un chevauchement Python

bool(set(a) & set(b))
Prickly Peacock