Python Periksa apakah dua daftar berpotongan

a = [1, 2, 3]
b = [3, 4, 5]

bool(set(a) & set(b))
2Bowls