I haven\'t done much python - coming from a C/Java background - so excuse me for asking such a simple question. I am using Pydev in Eclipse to write this simple program, and all
That entire block is misplaced.
class Example(object): def main(self): print "Hello World!" if __name__ == '__main__': Example().main()
But you really shouldn't be using a class just to run your main code.