how to create object of class inn python to call function code example Example: class python class MyClass(object): def __init__(self, x): self.x = x