For this Question: Create a class Teacher with name, age, and salary attributes, where salary must be a private attribute that cannot be accessed outside the class.
Print the details of the teacher including salary.The first line contains the name, the second line contains the age and the third line contains the salary of the teacher.

<b>Constraints:</b>
20<=age<=80Prints the details of the teacher in the following format:
Name: 
Age:
Salary:Sample Input:
raj
22
20000

Sample Output:
Name: raj
Age: 22
Salary: 20000, I have written this Solution Code: class Teacher():
    def __init__(self, name, age, salary):
        self.name = name
        self.age = age

        # private variable
        self.__salary = salary

    def show_details(self):
        print("Name:", self.name)
        print("Age:", self.age)

        #access private attribute inside the class
        print("Salary:", self.__salary)
name=input()
age=int(input())
salary=int(input())
teacher = Teacher(name,age,salary)

teacher.show_details(), In this Programming Language: Python, Now tell me if this Code is compilable or not?