title: matrices program asking for user input
body: <pre><code># 3x3
  X = [[0,0,0],
      [0 ,5,6],
      [7 ,0,0]]
  # 3x4
  Y = [[0,0,0,0],
      [0,0,0,0],
      [0,0,0,0]]
  # 3x4
  result = [[0,0,0,0],
           [0,0,0,0],
           [0,0,0,0]]
  
  # iterate through rows of X
  for i in range(len(X)):
     # iterate through columns of Y
     for j in range(len(Y[0])):
         # iterate through rows of Y
         for k in range(len(Y)):
             result[i][j] += X[i][k] * Y[k][j]         
  #This code multiplies matrices X and Y and puts the resulting product into matrix result
  #It then prints the matrix result row by row, so it looks like a matrix on the screen
  for r in result:
     print(r)
  </code></pre>
  
  <p>here i have a program that will work out a matrix but i was wondering on how to ask the user for the input when running the program instead of inputting the numbers beforehand </p>