Companies Home Search Profile

Understanding Python List Comprehensions

Focused View

Rich Bibby

18:39

214 View
  • 0 ListComp-Overview.mp4
    01:11
  • 1 ListComp-How-to-Create-Lists-in-Python.mp4
    04:49
  • 2 ListComp-How-to-Supercharge-Your-Comprehensions.mp4
    05:04
  • 3 ListComp-When-Not-to-Use-a-List-Comprehension-in-Python.mp4
    06:27
  • 4 ListComp-Conclusion.mp4
    01:08
  • list comp sample code.zip
  • understanding-python-list-comprehensions.pdf
  • Description


    One of Python’s most distinctive features is the list comprehension, which you can use to create powerful functionality within a single line of code. However, many developers struggle to fully leverage the more advanced features, or use them too much, which can lead to code that’s less efficient and harder to read.

    By the end of this course, you’ll understand the full power of Python list comprehensions and how to use their features comfortably. You’ll also gain an understanding of the trade-offs that come with using them so that you can determine when other approaches are more preferable.

    What You'll Learn?


    • Rewrite loops and map() calls as a list comprehension in Python
    • Choose between comprehensions, loops, and map() calls
    • Supercharge your comprehensions with conditional logic
    • Use comprehensions to replace filter()
    • Profile your code to solve performance questions

    More details


    User Reviews
    Rating
    0
    0
    0
    0
    0
    average 0
    Total votes0
    Focused display
    Category

    Rich is an avid Pythonista and a video instructor at Real Python.

    He is also a Network Engineer using Python to automate the management of a large network infrastructure.

    He lives in Dubai, UAE, with his wife and daughter plus a Miniature Schnauzer.

    Learn Python online: Python tutorials for developers of all skill levels, Python books and courses, Python news, code examples, articles, and more.
    • language english
    • Training sessions 5
    • duration 18:39
    • Release Date 2023/01/05