class emp: name=[] addr=[] def inp(self,i): nam=input("For Employee "+str(i)+"\nEnter employee name: ") add=input("Enter Employee Address: ") self.name.append(nam) self.addr.append(add) def numb(self): n=int(input("Enter no.of Employee: ")) for z in range(n): self.inp(z) def disp(self): for y in range(len(self.name)): print("Employee ",y,", Name= ",self.name[y]," Address= ", self.addr[y]) x=emp() x.numb() x.disp()