title: Executing a command when a list is equal to one line of a matrix in python
body: <p>If all 3 of the values in the list below are equal to any of the 3 values in one line of the matrix, I want it to print 'hello'. </p>
  
  <pre><code>#if x is equal to the 1st line of the matrix I want it to print hello. If x is equal to the 2nd part and not the 1st I still want it to print the same string.
  
  x = [1, 2, 3]
  y = [
      [1, 2, 3],
      [4, 5, 6],
      [3, 4, 5],
      [7, 8, 9]
  ]
  if x == (y):
      print('hello')
  </code></pre>
  
  <p>As shown above, the x list value is equal to one of the lines in the matrix but it won't print hello. How would I get the program to do that. </p>