String concatenation,
php : $str1.$str2
c++: str1 + str2
vb: str1 & str2
Defining functions,
mel : global int[] proc getMyAnts(string $place)
c++: int* MyClass::getMyAnts(MString place)
python: def getMyAnts(self, place)However, after learning python I am thinking about making it my main focus amongst all programming languages. The ease of use, elegant syntax and flexibility to create magic is what sets this language apart from other languages. However, I don't claim it's the best language out there, but it surely is powerful and different in a way that I have started loving it.
Since I am still young in using python I thought it would be a good idea to post tricks and helpful language features that I learn on my own or from others.
No comments:
Post a Comment