2 ms·
About the alternative, you can learn about algorithms but be prepared to not learn them in a pythonic way.
by rapfaria 10y ago
About the alternative, you can learn about algorithms but be prepared to not learn them in a pythonic way.
- bogomipz 10y agoI'm not sure I would say the book is "un-pythonic", but rather the book intentionally avoids overly language specific idioms in order to reduce algorithms to their most basic form. Once you have the basic knowledge its trivial to implement them in any language you want, using those language specific idioms - swaps without a temp variable or list comprehensions etc. It is not a "Python book" per se it is an algorithms book that uses Python to teach. I've seen many Algorithm book that use Java use a stripped-down back to basics procedural style as well I think for the same reason. The book also incorporate code lens and Python Tutor so you can step through your stack frames and pause execution. This is a wonderful teaching aide, especially for things like recursion. http://www.pythontutor.com/ http://www.pythontutor.com/