Python 3 Deep Dive (Part 2 - Iteration, Generators)

Python 3 Deep Dive (Part 2 – Iteration, Generators)

Python 3 Deep Dive (Part 2 – Iteration, Generators). Sequences, Iterables, Iterators, Generators, Context Managers and Generator-based Coroutines

Part 2 of this Python 3: Deep Dive series is an in-depth.

I will show you exactly how iteration works in Python – from the sequence protocol, to the iterable and iterator protocols, and how we can write our own sequence and iterable data types.

We’ll go into some detail to explain sequence slicing and how slicing relates to ranges. We look at comprehensions in detail as well and I will show you how list comprehensions are actually closures and have their own scope, and the reason why subtle bugs sometimes creep in to list comprehensions that we might not expect.

We’ll take a deep dive into the itertools module and look at all the functions available there and how useful (but overlooked!) they can be. We also look at generator functions, their relation to iterators, and their comprehension counterparts (generator expressions).

Context managers, an often overlooked construct in Python, is covered in detail too. There we will learn how to create and leverage our own context managers and understand the relationship between context managers and generator functions.

Finally, we’ll look at how we can use generators to create coroutines.

Python 3 Deep Dive (Part 2 – Iteration, Generators) Description

Requirements

  • This is a relatively advanced course, so you should already be familiar with basic Python concepts, as well as some in-depth knowledge as described in the prerequisites in the course description. Please be sure you check those and make sure!
  • You will need Python 3.6 or above, and a development environment of your choice (command line, PyCharm, Jupyter, etc.)

Web Scraping 101 with Python3 using REQUESTS, LXML & SPLASH

What you’ll learn

  • You’ll be able to leverage the concepts in this course to take your Python programming skills to the next level.
  • Sequence Types and the sequence protocol
  • Iterables and the iterable protocol
  • Iterators and the iterator protocol
  • List comprehensions and their relation to closures
  • Generator functions
  • Generator expressions
  • Context managers
  • Creating context managers using generator functions
  • Using Generators as Coroutines
Who this course is for:
  • Python developers who want a deeper understanding of sequences, iterables, iterators, generators and context managers.

Python 3 Deep Dive (Part 2 – Iteration, Generators) Free Download

Google Drive(T)

Content From: https://www.udemy.com/course/python-3-deep-dive-part-2/

Give a Comment