AmitIndap
New Contributor II

query = 'SELECT * FROM dbsnp where rs_id="{}"'.format(rs_id)

Add single quotes around the query

,

Surround the query in single quote

query = 'SELECT * FROM dbsnp where rs_id="{}"'.format(rs_id)