<jupyter_start><jupyter_text>Class<jupyter_code>class MyClass:#name of class
  pass #create a class without variable and methods
class MyClass:
  def __init__(self,name,age):
    self.name = name      #create a class with attributes
    self.age = age

  def display(self):
   print(self.name,self.age)

person= MyClass("<NAME>",18)     #creating an object name

person.display()
print(person.name)
print(person.age)
#Application 1- Write a Python program that computes for an area of rectangle: Area=lw

class Rectangle:
 def __init__(self,l,w):
  self.l= l
  self.w= w    #attribute names

 def Area(self):
  print(self.l*self.w)

rect= Rectangle(7,3)
rect.Area()<jupyter_output>21<jupyter_text>Application 2- Write python program that displays the fullname of a student, student number, age, course, and school. Create a class name OOP_1_1 and create info() method to display the information of a student with fullname, student_no,age,course,school as attributes<jupyter_code>class OOP_1_1:
  def __init__(self, fullname, student_no, age, course, school):
    self.fullname = fullname
    self.student_no = student_no
    self.age = age
    self.course = course
    self.school = school

  def info(self):
    print(self.fullname,self.student_no,self.age,self.course,self.school)
    print("Hi! My name is ",self.fullname)
    print("Student number:",self.student_no)
    print(self.age," years old")
    print("Taking ",self.course)
    print("Currently studying at ",self.school)

    student=OOP_1_1("<NAME>",202101624, 18,"BSCpE","CvSU")
student.info()<jupyter_output><NAME> 202101624 18 BSCpE CvSU
<NAME>
202101624
18
BSCpE
CvSU<jupyter_text>Application 3- Define an Area() method of th class Cirlce that calculates the circle's area. Define a Perimeter() method of the class which allows you to calculate the perimeter of a circle<jupyter_code>class Circle:
  def __init__(self,pi,rad):
    self.pi= pi
    self.rad=rad

  def Area(self):
    print(self.pi*self.rad**2)
  
  def Perimeter(self):
    print(2*self.pi*self.rad)

Circ=Circle(3.14,10)
Circ.Area()
Circ.Perimeter()<jupyter_output>314.0
62.800000000000004
{'fraction_non_alphanumeric': 0.112, 'fraction_numerical': 0.03576470588235294, 'mean_word_length': 4.654255319148936, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '610026', 'license': 'Apache-2.0', 'n_tokens_mistral': 785, 'n_tokens_neox': 726, 'n_words': 201, 'path': 'Python_Classes_and_Objects.ipynb', 'repo_name': 'JoshuaDiazAtencia/OOP-1-1', 'size': '2169'}