How to avoid AttributeError: '_tkinter.tkapp' object has no attribute 'PassCheck'
<p>I have read previous posts regarding this error but could not identify what i was doing wrong.Please can someone help me understand what i am doing wrong,thank you.</p>

<pre><code>   from tkinter import *
   class Passwordchecker():
    def __init__(self):
       self= Tk()
       self.geometry("200x200")
       self.title("Password checker")
       self.entry=Entry(self)
       self.entry.pack()
       self.button=Button(self,text="Enter",command= lambda: self.PassCheck(self.entry,self.label))
       self.button.pack()
       self.label=Label(self,text="Please a password")
       self.label.pack()
       self.mainloop()
    def PassCheck(self1,self2):
       password = self1.get()
       if len(password)&gt;=9 and len(password)&lt;=12:
          self2.config(text="Password is correct")
       else:
          self2.config(text="Password is incorrect")

    run = Passwordchecker()
</code></pre>