title: Getting "AttributeError: '_io.TextIOWrapper' object has no attribute 'next'" error
body: <p>I am getting this error when i run the below code. I didn't find anything wrong with my code. Can anyone help me?</p>
  
  <pre><code>data = open('F:\\Chapter 2\\Customer Churn Model.txt','r')
  col = data.next().strip().split(',')
  no_col = len(data.next().strip().split(','))
  print(no_col)strong text**
  </code></pre>