python create calss code example
Example: calss python
class Person:
def __init__(self, name, age):
self.name = name
self.age = age
p1 = Person("John", 36)
print(p1.name) #>> "John"
print(p1.age) #>> 36
class Person:
def __init__(self, name, age):
self.name = name
self.age = age
p1 = Person("John", 36)
print(p1.name) #>> "John"
print(p1.age) #>> 36