python use classes methods code example
Example 1: class python
class MyClass(object):
def __init__(self, x):
self.x = x
Example 2: how to use class's in python
class person:
name = "jake"
age = 13
x = vars(person)
print(x)
class MyClass(object):
def __init__(self, x):
self.x = x
class person:
name = "jake"
age = 13
x = vars(person)
print(x)