title: how to delete space from tuple in python code?
body: <p>I have a python code that connects to an oracle database and by using <code>select</code> returns me data and saves data in the file. <strong>I need to remove spaces in this saved data!</strong> Here is my code</p>
  <pre><code>import cx_Oracle
  
  conn_str = u'login/password@ip/user'
  conn = cx_Oracle.connect(conn_str)
  c = conn.cursor()
  c.execute(u&quot;SELECT * FROM subs_histories WHERE subs_subs_id IN (SELECT subs_subs_id FROM subs_histories where end_date &lt; start_date GROUP BY subs_subs_id HAVING COUNT(*) &gt; 1)  ORDER BY subs_subs_id, start_date, end_date&quot;)
  
  with open('subs_histories.cvs', 'w', encoding=&quot;utf8&quot;) as f:
      for row in c:
          print(row[0],&quot;;&quot;, row[1],&quot;;&quot;, row[2],&quot;;&quot;, row[3],&quot;;&quot;, row[4],&quot;;&quot;, row[5], file=f)
  conn.close()
  </code></pre>