title: confusion between self.variable and variable in a class in python
body: <p>why the following code is giving output as vijay,change,10 
  i am new to python and i dont understand what is instance variable and what is local variable. And </p>
  
  <pre><code>class Emp:
      name = "satya"
      def __init__(self,n):
          name = "change"            
          self.name = n
          self.var  = 10
          Emp.name=name
  
  e = Emp("vijay")
  print(e.name)
  print(Emp.name)
  print(e.var)
  </code></pre>