creating an object from a subroutinepython code example Example: class python class MyClass(object): def __init__(self, x): self.x = x