<jupyter_start><jupyter_text>Create a Class<jupyter_code>class Car:
  pass<jupyter_output><empty_output><jupyter_text>Object Methods<jupyter_code>class Human():
  def __init__(self, name, age):
    self.name = name
    self.age = age
  def myFunction(self):
    print("hello! My name is " + self.name)
    print("I am " + str(self.age))

p1 = Human("Daniel", 18)
p1.myFunction()<jupyter_output>hello! My name is Daniel
I am 18<jupyter_text>Create an Object<jupyter_code>class Car:
  def __init__(self,name,color):
    self.name=name
    self.color=color

  def description(self):
    return "The" + self.name +"has a color" +self.color

  def show(self):
    print("The " +self.name+" has a color "+ self.color)

car1 = Car("Honda City", "red")
car1.show()<jupyter_output>The Honda City has a color red<jupyter_text>Modiy an Object Property<jupyter_code>car1.name= "Mitsubishi"
print(car1.name)

car1.color="blue"
print(car1.color)
car1.show()<jupyter_output>Mitsubishi
blue
The Mitsubishi has a color blue<jupyter_text>Delete an Object<jupyter_code>del car1.color
print(car1.color)
car1.color="green"
print(car1.color)<jupyter_output>green<jupyter_text>Application 1 - Write a Python program that computes for the Area and Perimeter of a Square, and create a class name Square with side as its attribute<jupyter_code>class Square():
  def __init__(self,side):
    self.side = side
  
  def area(self):
    return self.side * self.side
  
  def perimeter(self):
    return 4 * (self.side)

  def display(self):
    print("The area of a square is: ", self.area())
    print("The perimeter of a square is: ", self.perimeter())

input_square=float(input("Input: "))
eq=Square(input_square)
eq.display()<jupyter_output>Input: 3.5
The area of a square is:  12.25
The perimeter of a square is:  14.0<jupyter_text>Application 2 - Write a Python program that displays your student no. and fullname(Surname,First Name MI) and create a class name OOP_58002<jupyter_code>class Student:

  def _init_(self, num , surname , FN , MI , classname):
    self.classname = classname
    self.num = num
  def name(self):
    return self.Surname, self.FN, self.MI

  def id(self):
    return self.num

  def section(self):
    return self.classname

  def display(self):
    print("Hello I am ", self.name())
    print("My id number is ", self.id())
    print("I am in class ",self.section())

  Surname = "Viray"
  FN = '<NAME>'
  MI = 'M'
  classname = 'OOP_58002'
  num = '202111777'

intro = Student()
intro.display()<jupyter_output>Hello I am  ('Viray', '<NAME>', 'M')
My id number is  202111777
I am in class  OOP_58002
{'fraction_non_alphanumeric': 0.12403993855606758, 'fraction_numerical': 0.023809523809523808, 'mean_word_length': 4.393374741200828, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '7', 'dir': 'jupyter-structured-clean-dedup', 'id': '396127', 'license': 'Apache-2.0', 'n_tokens_mistral': 990, 'n_tokens_neox': 934, 'n_words': 257, 'path': 'OOP_Concepts_in_Python.ipynb', 'repo_name': 'DJ2123/OOP-58002', 'size': '2618'}