Write a python script to define the class person having members name, address. Create a subclass called Employee with members staffed salary. Create 'n' objects of the Employee class and display all the details of the employee.
class Person:
self.address=input("Enter
Person Address:")
def DisplayPer(self):
print("Person
Name:",self.Name)
class Employee(Person):
def
AcceptEmp(self):
def
DisplayEmp(self):
print("Employee salary is:",self.salary)
n=int(input("Enter How many Employee:"))
s=[]
for i in range(0,n):
x=input("Enter
Object Name:")
s.append(x)
print(s)
for j in range(0,n):
s[j]=Employee()
s[j].AcceptPer()
s[j].AcceptEmp()
print("Display Details:")
for k in range(0,n):
s[k].DisplayPer()
s[k].DisplayEmp()