class Employee: def __init__(self,name,salary): self.name=name self.salary=salary def printclass(self): if hasattr(self,'age'): print("True") print(f"{self.name}'salary is {self.salary}, and his age is {self.age}") else: print("False") self.age=age print(f"{self.name}'salary is {self.salary}, and his age is {self.age}") name=input() salary=input() age=input() e=Employee(name,salary) e.printclass()