SQL Python hwo для прохождения списка в параметре
query = 'SELECT * FROM data WHERE id IN {};'.format(id_tuple)
Fancy Fly
query = 'SELECT * FROM data WHERE id IN {};'.format(id_tuple)