class Employee: def __init__(self,name,salary): self.__name = name self.__salary = salary def printclass(self): print(f"{self.__name}'salary is {self.__salary}, and his age is {self.age}") name = input() salary = int(input()) age = int(input()) e = Employee(name, salary) try: e.printclass() except: print('Error! No age') e.age = age try: e.printclass() except: print('Error! No age')