Generators, Iterators, itertools
and above all List Comprehensions.
These are the pillars of anything Pythonic. And for everything else, there is PEP-8.
Read up on these concepts and try using them wherever appropriate. All the best!
PS: Don't forget to import this
;)
Addendum: I would also aggregate some excellent suggestions given by others in this thread here:
- Read Code Like a Pythonista: Idiomatic Python (from David Grant)
- Solving problems from Project Euler is a great idea (from Nick Fortescue)
- This excellent presentation on Generators and Iterators by David Beazley (from André)
- Learn about Scons (from the venerable S.Lott)
No comments:
Post a Comment