From the course: Python: Programming Efficiently
Unlock the full course today
Join today to access over 23,300 courses taught by industry experts.
Writing Python efficiently - Python Tutorial
From the course: Python: Programming Efficiently
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.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Writing Python efficiently50s
-
(Locked)
Python vs. C4m 40s
-
(Locked)
Design efficient loops7m 3s
-
(Locked)
Comprehensions and generators6m 41s
-
(Locked)
Exploit Python collections7m 14s
-
(Locked)
Write Pythonic code6m 44s
-
(Locked)
Challenge: Analyze Olympic medalist data1m 20s
-
(Locked)
Solution: Analyze Olympic medalist data1m 33s
-
(Locked)
-
-
-
-