How to write SQL query in Python

Hi Guys, I will need to do the test in Python editor and I am not sure how to write a query in such editor, so I have instruction like this :

So anyone please give me an example how to write following query in such editor? For instance i want to write this query: Select * from customers;

Welcome

A quick search in google provides

ok so can you please confirm if my query should look like this then:
query = ("Select * from customers;")