title: Convert tab delimited (\t) text file to another tab delimited (\t) text file without last column in python
body: <p>I have a tab delimited (\t) text file with nine columns, How to get a same tab delimited (\t) text file with out last column in python</p>
  
  <p><strong>Sample Data</strong> (sampledata.txt)</p>
  
  <blockquote>
    <p><strong>col1    col2    col3    col4    col5    col6    col7    col8    col9</strong></p>
    
    <p>val1    val2    val3    val4    val5    val6    val7    val8    val9</p>
  </blockquote>
  
  <p><strong>Expected Output</strong> (expecteddata.txt)</p>
  
  <blockquote>
    <p><strong>col1    col2    col3    col4    col5    col6    col7    col8</strong></p>
    
    <p>val1    val2    val3    val4    val5    val6    val7    val8</p>
  </blockquote>
  
  <p>Here tab delimiter is not visible, There is a tab space between columns and i am trying to delete last column through python code</p>