title: Brute Force Hacker Concept in Python 3
body: <p>The code that i currently have will list all possible combinations</p>
  
  <pre><code>from itertools import product
  
  password = "hr"
  
  chars = 'abcdefghijklmnopqrstuvwxyz' #characters to look for, can have letters added
  
  for length in range(1, 3): #only do lengths of 1 + 2 - namely from aa - zz not onto aaa
      to_attempt = product(chars, repeat=length)
      for attempt in to_attempt:
          print(''.join(attempt))
  </code></pre>
  
  <p>What i need it to do is take each tried attempt and compare it with the variable "password", if it matches break out of the for loop else carry on, any ideas?</p>