<jupyter_start><jupyter_text>Application 11. Create a Python program that displays the name of three students (Student 1, Student 2, Student 3) and their term grades2. Create a class name Person and attributes - std1,std2,std3,prs,mid,fin3. Compute the average of each term grade using Grade() method4. Information about student's grades must be hidden from others<jupyter_code>class data:
  def __init__(self,firstname,lastname,prelim,midterm,final):
   self.firstname = firstname
   self.lastname = lastname
   self.prelim = prelim
   self.midterm = midterm
   self.final = final

  def printname(self):
    print(self.firstname, self.lastname)

class stud1(data):
  def average(self):
    return ((self.prelim + self.midterm + self.final)/3)


fname_input1 = str(input("Enter Your First Name: "))
lname_input1 = str(input("Enter Your Last Name: "))
prelims_input1 = float(input("Prelims:"))
midterms_input1 = float(input("Midterm:"))
finals_input1 = float(input("Finals:"))

student1 = stud1(fname_input1, lname_input1,prelims_input1, midterms_input1, finals_input1)
print("\n")
student1.printname()
print("Average:" , round(student1.average(),2), "\n")



class stud2(data):
  def average(self):
    return ((self.prelim + self.midterm + self.final)/3)


fname_input2 = str(input("Enter Your First Name: "))
lname_input2 = str(input("Enter Your Last Name: "))
prelims_input2 = float(input("Prelims:"))
midterms_input2 = float(input("Midterm:"))
finals_input2 = float(input("Finals:"))

student2 = stud2(fname_input2, lname_input2,prelims_input2, midterms_input2, finals_input2)
print("\n")
student2.printname()
print("Average:" , round(student2.average(),2), "\n")


class stud3(data):
  def average(self):
    return ((self.prelim + self.midterm + self.final)/3)


fname_input3 = str(input("Enter Your First Name: "))
lname_input3 = str(input("Enter Your Last Name: "))
prelims_input3 = float(input("Prelims:"))
midterms_input3 = float(input("Midterm:"))
finals_input3 = float(input("Finals:"))

student3 = stud3(fname_input3, lname_input3,prelims_input3, midterms_input3, finals_input3)
print("\n")
student3.printname()
print("Average:" , round(student3.average(),2), "\n")<jupyter_output>Enter Your First Name: <NAME>
Enter Your Last Name: Ocasion
Prelims:95
Midterm:92
Finals:97


<NAME>
Average: 94.67 

Enter Your First Name: Xavier
Enter Your Last Name: Ocasion
Prelims:79
Midterm:95
Finals:99


<NAME>
Average: 91.0 

Enter Your First Name: Alesdro
Enter Your Last Name: Ocas
Prelims:90
Midterm:84
Finals:97


<NAME>
Average: 90.33
{'fraction_non_alphanumeric': 0.13448682658277625, 'fraction_numerical': 0.03578450648839953, 'mean_word_length': 6.0470914127423825, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '495395', 'license': 'Apache-2.0', 'n_tokens_mistral': 955, 'n_tokens_neox': 889, 'n_words': 216, 'path': 'Activity_3.ipynb', 'repo_name': 'AlessandroXavierOcasion/OOP-1-1', 'size': '2587'}