<jupyter_start><jupyter_text><jupyter_code>class Person:
  def __init__(self, std, pre, mid, fin):
    self.__std = std
    self.__pre = pre
    self.__mid = mid
    self.__fin = fin

  def Terms(self):
    print(self.__std, self.__pre, self.__mid, self.__fin)

  print("Student Term Grades (Prelim, Midterm, Finals):")
stu1 = Person("Student 1", 88, 89, 87)
stu2 = Person("Student 2", 88, 87, 98)
stu3 = Person("Student 3", 91, 90, 92)
stu1.Terms()
stu2.Terms()
stu3.Terms()

class Student(Person):
  def __init__(self, pre, mid, fin):
    self.__pre = pre
    self.__mid = mid
    self.__fin = fin

  def Grade(self):
    return((self.__pre + self.__mid + self.__fin)/3)

print("Student Term Average:")
std1 = Student(88, 89, 87)
print("Student 1:", round(std1.Grade(), 2))
std2 = Student(88, 87, 90)
print("Student 2:", round(std2.Grade(), 2))
std3 = Student(91, 90, 92)
print("Student 3:", round(std3.Grade(), 2))<jupyter_output>Student Term Grades (Prelim, Midterm, Finals):
Student 1 88 89 87
Student 2 88 87 98
Student 3 91 90 92
Student Term Average:
Student 1: 88.0
Student 2: 88.33
Student 3: 91.0
{'fraction_non_alphanumeric': 0.15718157181571815, 'fraction_numerical': 0.08310749774164408, 'mean_word_length': 4.12962962962963, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '573151', 'license': 'Apache-2.0', 'n_tokens_mistral': 490, 'n_tokens_neox': 407, 'n_words': 126, 'path': 'OOP_Application_Example.ipynb', 'repo_name': 'LanzAndreiCatamisan/OOP-1-1', 'size': '1107'}