title: Python - faster way to do for loops
body: <p>I was just wondering if anyone knew a faster / more efficient way to test this.</p>
  
  <p>(It's suppose to write out every solution to the equation)</p>
  
  <pre><code>        for z in range(500):
             for x in range(500):
               for y in range(500):
                 if (x * 80) + (z * 65) + (y * 50) == 1950:
                   print("x " + str(x) + " z " + str(z) + " y " + str(y))
  </code></pre>
  
  <p>Thanks!</p>