I use the spaceship operator : ' <=> ' . I love it. But whenever I come back to this, I was like. Oh man, what is this. ??
So somehow a colleague of mine have written some Python and got stuck on some issues. In order to help him, I have to learn Python. So i decided to rewrite a portion of the my Perl code to Python. The result is... wow, efficiency. !
I was thinking. Why I wrote so fast on Python? Hmmm... Then I realize a few things:
1. There's no curly brackets { }. So I don't have to worry about missing brackets.
2. Semicolon ';' is optional. So being lazy, I just skip the semicolon
3. Strong community support. Packages are all in PIP . Getting a package is as simple as running
pip install
4. Works well on both Windows and Linux.
So far I'm happy with Python. I probably use more and more of it.
No comments:
Post a Comment