From the course: Python: Programming Efficiently

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Writing Python efficiently

Writing Python efficiently - Python Tutorial

From the course: Python: Programming Efficiently

Start my 1-month free trial

Writing Python efficiently

- [Instructor] Python was designed so that it allows, in fact, it encourages writing code that is brief, clear, beautiful and fast. This is Python's secret weapon, that you can pursue beauty and efficiency together, and surely this must be one of the reasons why Python programmers report very high satisfaction in their day-to-day work. These are some of the tools and ideas that can help you make the most of the core Python language. Exploiting Python's expressiveness. How you can get it to do more by writing less. Looping with Python's flexible iterators. Manipulating data with Python comprehensions. Taking advantage of the specialized objects in the collections module. And overall, rethinking code to make it more Pythonic. Let's get going.

Contents