All of the tutorials I see online show how to create classes with __init__ constructor methods so one can declare objects of that type, or instances of that class.<
__init__
There are two ways to do that (Python 2.6+):
class Klass(object): @staticmethod def static_method(): print "Hello World" Klass.static_method()
your module file, called klass.py
def static_method(): print "Hello World"
your code:
import klass klass.static_method()