python student class code example
Example 1: class python
class Person:
def __init__(self, name, age):
self.name = name
self.age = age
p1 = Person("John", 36)
p1.age = 40
print(p1.age)
---------------------------------------------------------------
40
Example 2: how to use class's in python
class person:
name = "jake"
age = 13
x = vars(person)
print(x)