Print function not working

Atri Mahapatra atri.mahapatra at gmail.com
Thu Aug 11 13:08:18 EDT 2016


I have installed IDLE 3.5.1 and wrote the following print command to see if it is working. When I ran the code nothing is printed. Can you please point the reason- anything wrong with the code?



class Base: #{
    def __init__( self ): #{
        print("Hello, world: \n\n");

        #}

    #}


if ( __name__ == " __main__"): #{
    root = Base();
#}

Thanks,
Atri



More information about the Python-list mailing list