Python3 is wonderful

Written by Jaganadh Gopinadhan

See the below given Python code. What do you think!! will it be executed without throwing errors or not?

    import sys

    def പണിയെടുകകൂ ( പാഠം):
        for വരി in പാഠം:
            print( വരി )


    വരവ = sys.argv[1]

    മൊതതം = open(വരവ,'r').readlines()

    പണിയെടുകകൂ(മൊതതം)

Don’t scratch your head it will. If you use Python3 for running the code.

Save the code as test.py. Install Python3 . Run the program as python3 test.py

I just saw some new Python documentation for Python3 with some similar examples. Thanks to Santhosh Thottingal SMC for pointing the link. Then I decided to experiment with it.

Wow great in Python3 you can declare variable names function names in your local language. But you wont get the Python reserved words in in your language. I think Python is the first programming language which provides such a great facility.

Migrated from my old blog jaganadhg.freeflux.net

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