Python3 is wonderful
See the below given Python code. What do you think!! will it be executed without throwing errors or not?
####Code begin#####################
import sys
def പണിയെടുക്കൂ ( പാഠം):
for വരി in പാഠം:
print( വരി )
വരവ് = sys.argv[1]
മൊത്തം = open(വരവ്,'r').readlines()
പണിയെടുക്കൂ(മൊത്തം)
######## Code End ######################
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 <your file>
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.
Comments
വേരിയബിള്സ് അല്ലാതെ കോഡ് സിന്റാക്സ് മലയാളത്തില് പറ്റുമോ.....
അത് നടപ്പുള്ള കാര്യമല്ല . വേരിയബിളിന്റെ പേരുകള് ഫങ്ഷന്റെ പേരുകള് ഇവ മലയാളത്തിലോ ഏത് ഭാഷയിലോ വേണമെങ്കില് കൊടുക്കാം .
I have experiences in programming since I am taking up Computer studies. We have not taken up yet this language but it is kind of hard to understand as I see it. Well, anyway I hope we will take up this and learn this language. Because I am interested on how this works and what it can do.
i had no idea this was supported in python3. fascinating. i've been waiting for this moment in programming!






