title: Read from a file,split it and store it in variables
body: <p>I have a file which has data like this :</p>
  
  <p>2905 5.0 10</p>
  
  <p>1420 5.0 2</p>
  
  <p>3011 5.0 2</p>
  
  <p>659 5.0 2</p>
  
  <p>121 5.0 1</p>
  
  <p>1743 5.0 1</p>
  
  <p>2056 5.0 1</p>
  
  <p>2063 5.0 1</p>
  
  <p>2185 5.0 1</p>
  
  <p>2192 5.0 1</p>
  
  <p>2198 5.0 1</p>
  
  <p>2215 5.0 1</p>
  
  <p>2562 5.0 1</p>
  
  <p>2632 5.0 1</p>
  
  <p>2675 5.0 1</p>
  
  <p>2994 5.0 1</p>
  
  <p>3038 5.0 1</p>
  
  <p>3205 5.0 1</p>
  
  <p>3245 5.0 1</p>
  
  <p>3280 5.0 1</p>
  
  <pre><code>    f=open('/home/bhoots21304/Desktop/out12.txt','r')
      for line in f:
          a = line.strip().split('\t')
          (movieId, rating, views) = a
  </code></pre>
  
  <p>&amp;&amp; this code is throwing me an error:</p>
  
  <pre><code>(movieId, rating, views) = a
  
  ValueError: not enough values to unpack (expected 3, got 1)
  </code></pre>
  
  <p>Is there any other way to read from file, split the string and store it in some variable?</p>