title: not defined error in python while using class
body: <p>I'm a beginner and i have been trying to get employee leave management data from user input of 'n' employees using class function. </p>
  
  <p>Here are my codes to get n inputs from user for employee leave management</p>
  
  <pre><code>class Employee:
      n=int(raw_input("Pls enter the number of employees:"))
  
  def __init__(self, name, idno, leavetaken, leavereqd, reason):
  
      self.name=name
      self.idno=idno
      self.leavetaken=leavetaken
      self.leavereqd=leavereqd
      self.reason=reason
  
      def Employee(self):
          print("name:", self.name,", idno:", self.idno, ", leavetaken:", self.leavetaken,", leavereqd:", self.leavereqd,", reason:", self.reason)
  
  print "Employee.name:", Employee.name             
  print "Employee.idno:", Employee.idno
  print "Employee.leavetaken:", Employee.leavetaken
  print "Employee.leavereqd:", Employee.leavereqd
  print "Employee.reason:", Employee.reason
  </code></pre>