title: For loop query in python
body: <pre><code>for i in range(len(X)):
   theta[i]= 0+ (X[i]*0.5)
   break
  print(theta)
  </code></pre>
  
  <p>I have <code>X</code> as a matrix of random values with 96 rows and 1 column and <code>T</code> is another matrix with zeros(96 rows and 1 column).</p>
  
  <p>I need to calculate the following equation with each row value of <code>X</code> and need to put the answer in <code>T</code>.It's just taking the first value of <code>X</code> and putting the same answer in all rows in <code>T</code>. </p>
  
  <p>How do I do that? Im beginner in python. TIA</p>