Function within class and in modules

Zachary Dziura zcdziura at gmail.com
Thu Jun 16 11:52:43 EDT 2011


On Thursday, June 16, 2011 9:02:45 AM UTC-4, Andrew Berg wrote:
> On 2011.06.15 08:57 AM, Zach Dziura wrote:
> > Just repeat this to yourself: Python ISN'T Java.
> class MainClass:
>     def public static void main(*args):
>         print('Am I doin' it right?')
> 
> :P
> 
> Or something like that. I've forgotten almost everything I learned about
> Java.

Pssshhh... Syntax can be set up similarly, but that's not the same! And you know that. =P



More information about the Python-list mailing list