<jupyter_start><jupyter_text>Create a class<jupyter_code>class Car:
  pass<jupyter_output><empty_output><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 Civic Type R "," white")
car1.show()<jupyter_output>The Honda Civic Type R has a color white<jupyter_text>Object Methods<jupyter_code>class Person:
  def __init__(self,name,age):
    self.name = name
    self.age = age
  def myFunction(self):
    print("Hello Guys! My name is",self.name)
    print("I am",self.age)
  
p1= Person("Jacob",19)
p1.myFunction()<jupyter_output>Hello Guys! My name is Jacob
I am 19<jupyter_text>Modify an Object Property<jupyter_code>car1.name =" Ford"
print(car1.name)

car1.color = " Gray"
print(car1.color)

car1.show()<jupyter_output>Ford
 Gray
The  Fordhas a color Gray<jupyter_text>Delete an Object Property<jupyter_code>del car1.name
print(car1.color)<jupyter_output>Gray<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>#Area of a Square = s*s
#Perimeter of a Square = 4*s = s+s+s+s

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())

sq1 = Square(2)
sq1.display()<jupyter_output>The area of a square is 4
The perimeter of a square is 8<jupyter_text>lication 2 - Write a Python program that displays your sudent no. and fullname(Surname, First Name MI) and create a class name OOP_58002<jupyter_code>class Person:
 def __init__(self,student,number):
  self.student = student
  self.number = number

 def myFunction(self):
  print("I am",self.student,"and my student number is", self.number)
  print("Section - OOP_58002")


p1= Person("Lambojo, <NAME>", 202117994)
p1.myFunction()<jupyter_output>I am Lambojo, <NAME> and my student number is 202117994
Section - OOP_58002
{'fraction_non_alphanumeric': 0.11341571050308914, 'fraction_numerical': 0.026037069726390114, 'mean_word_length': 5.210958904109589, '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': '407464', 'license': 'Apache-2.0', 'n_tokens_mistral': 856, 'n_tokens_neox': 804, 'n_words': 224, 'path': 'OOP_Concepts_in_Python.ipynb', 'repo_name': 'Nachtttt/OOP-58002', 'size': '2282'}