title: how to remove white space of select statement in python
body: <p>Note:The below query is not giving any output so when I did print the query then i got to know that there is white space which is shown below in output.can any one solve this or give any solution?</p>
  
  <pre><code>node="some text"
  
  sql=("select * from table where Node='%s.sam'"%node)
  
  print("select * from table where Node='%s.sam'"%node)
  
  cursor.execute(sql)
   data=cursor.fetchall()
  
   for dat in data:
  
       print(dat)
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>select * from table where Node='some text
  
  .sam'
  </code></pre>