For this Question: Get and update data using python OOPs using getter and setter method1st line: Student name and Student age
2nd line: Number of operations n
Next n lines: string like g or s.If the string if g print the name and age of the studentInput:
Jessica 15
5
g
s 12
g
s 13
g
Output:
Jessica 15
Jessica 12
Jessica 13, I have written this Solution Code: class Student:
  def __init__(self,name,age):
    self.name=name
    self.__age=age
  
  def get_age(self):
    print(self.name,self.__age)
  
  def set_age(self,number):
    self.__age=number

name,age=input().strip().split()
s1=Student(name,age)
n=int(input())
for i in range(n):
  a=input().strip().split()
  if(a[0]=="g"):
    s1.get_age()
  else:
    s1.set_age(a[1])


, In this Programming Language: Python, Now tell me if this Code is compilable or not?