title: Solving Brute force algorithm without itertools function
body: <p>Assuming <em>1211</em> and <em>"baba"</em> is your pin and password.</p>
  
  <p>Write two different functions that keeps looping until it gets the pin and password respectively.</p>
  
  <p>i managed to write something using the itertools function but my tutor said not to use it and i should look for another way, i've only been coding for two weeks, so my understanding of python isn't wide and would really appreciate some advice. I'm really sorry about how messy my question is, this is my first time using this.</p>
  
  <pre><code>    import itertools
      import string
  
      for guess in itertools.product(string.lowercase, repeat=6):
        if checkguess(''.join(guess)):
          print("Password is: {0}".format(''.join(guess)))
  </code></pre>