title: Python: what is the fastest / most elegant way to see if every number in two arrays is the same?
body: <p>ie, compare: </p>
  
  <pre><code>1,-1,1 
  </code></pre>
  
  <p>to  </p>
  
  <pre><code>1.0,-1, 1
  </code></pre>
  
  <p>should be the same</p>
  
  <pre><code>print("the input and the output are " + ( (input == calc_out) ? "the same" : "not the same"))
  </code></pre>
  
  <p>but it give a lexical error =\</p>