3 ms·
http://xkcd.com/353/ http://xkcd.com/353/ Now more intelligently. It is very expressive (little code says a lot) and the code is really easy to read. If you a
by rguzman 19y ago
http://xkcd.com/353/ http://xkcd.com/353/
Now more intelligently. It is very expressive (little code says a lot) and the code is really easy to read. If you already know how to program it takes a few hours to get your feet wet and from there the "batteries included" philosophy makes it easy to start writing real python.
More technically, my favorite features in no particular order:
- list comprehensions
- functions as first are first class objects (you can pass functions around just like any other piece of data)
- functional programming tools
- indentation determines scope (some dislike this, I don't like curly braces), and this makes the code look nice
- slice notation
- powerful native data structures (lists, dictionaries, sets)
- args and *kwargs
- awesome standard library
I could probably keep going...
- eru 19y ago- * * dictionary arguments P.S. No two stars next two each other allowed on news.yc?