title: Creating a list assigned to each class instance
body: <p>Hey so I have trying to get into programming for the past week so with that in mind, please show my code some mercy. </p>
  
  <p>I have little idea of what i am actually doing but i guess I am trying to create an employee class that has a password function  which creates a random password per employee instance. My problem is I do not know on how to go about creating a password string per employee instance. I have tried creating a "passw" list but this simply duplicated the random password.</p>
  
  <p>Here is my code: </p>
  
  <pre><code>import random
  import string
  alpha = (string.ascii_letters)
  
  class employee:
      def __init__(self, name, passw):
          self.n = name
          self.pa =passw
          passw= []
  
      def password(self,name,diff):
          if name == self.n:
              print("successs")
  
          else:
              print("none found")
  
          if diff == 1:
              for i in range(5):
                  passw.append((random.choice(alpha)))
          elif diff == 2:
              for i in range(7):
                  passw.append((random.choice(alpha)))
          elif diff == 3:
              for i in range(10):
                  passw.append((random.choice(alpha)))    
  
          else:
              return("please select an appropirate difficulty")
  
          return "".join(passw)
  
  
  akki = employee("akki",passw)
  akki.password("akki",2)
  
  jane= employee("jane",passw)
  jane.password("jane",2)
  </code></pre>
  
  <p>as output I get: </p>
  
  <pre><code>successs
  successs
  'fChfnJixtmLmPmAKxOThSGqYXjJpCeEUhEwG'
  </code></pre>
  
  <p>Any thoughts on how to go about creating a password per employee? </p>