title: How can I create suitable methods for reading employee information in Python
body: <p>Here I have created constructor and set values for employee. But I have to  Create suitable methods for reading employee information. Here I have input the employee information from outside the class. So, how can I create method to scan employee information</p>
  
  <pre><code>class Employee():
  
      empCount = 0
  
      def __init__(self, name, salary, dep):
          self.name = name
          self.salary = salary
          self.dep = dep
          Employee.empCount += 1
  
      def displayEmployee(self):
          print ("Name : ", self.name,  ", Salary: ", self.salary,  ", depatment: ", self.dep)
  
  
  name={}
  salary={}
  dep={}
  emp={}
  
  
  for i in range (1,3):
      print("Enter Your Details for Employee %d" % (i))
      name[i]=input("Enter Your Name for employee:")
      salary[i]=float(input("Enter Your Salary for employee:"))
      dep[i]=input("Enter Your department for employee:")
      emp[i] = Employee(name[i], salary[i],dep[i])
  
  print("____________________________________________________")
  
  for i in range (1,3):
      emp[i].displayEmployee()
  
  print ("Total Employee %d" % Employee.empCount)
  </code></pre>