Again Python programming in Malayalam

Written by Jaganadh Gopinadhan

I tried Object Oriented Programming in Python (Python3) with Malayalam class names and variable names.

See the code. It works very well with Python3 interpreter.

    class പകഷി:

        def __init__(self):
            """
            ക്ലാസ് ഇനിഷ്യലൈസേഷന്‍
            """
            self.വിവിധ = ['കാക്ക','പ്രാവ്','കുരുവി','തത്ത','മൈന','പരുന്ത്','മൂങ്ങ']

        def പറകകുക(self, ഇനം):
            """
            പറക്കുമോന്ന് നോക്കാല്ലോ!!!!!!!!!!!
            """
            if ഇനം in self.വിവിധ:
                print("%s പറക്കുന്ന പക്ഷിയാണ്" % ഇനം)
            else:
                print("എനിക്കറിയാമ്മേലേ!!!!!!")

    if __name__ == "__main__":
        സൂചകം = പകഷി()
        പറവ = "കാക്ക"
        മൃഗം = "ആന"
        സൂചകം.പറകകുക(പറവ)
        സൂചകം.പറകകുക(മൃഗം)

Use Python3 interpreter to run the code !!!!

Happy Hacking !!!!!!!

Migrated from my old blog jaganadhg.freeflux.net

Written on February 4, 2010
The Opinions Expressed In This Post Are My Own And Not Necessarily Those Of My Employer.
[ Python  Python3  ]