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

6,308.00

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. File size: 18.99 GBPurchase Python 3: Deep Dive (Part 2 – Iteration, Generators) courses at here with PRICE $199 $38Python 3: Deep Dive (Part 2 – Iteration, Generators)What you’ll learnYou’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 protocolIterables and the iterable protocolIterators and the iterator protocolList comprehensions and their relation to closuresGenerator functionsGenerator expressionsContext managersCreating context managers using generator functionsUsing Generators as CoroutinesGet Python 3: Deep Dive (Part 2 – Iteration, Generators) downloadCourse contentExpand all 137 lectures34:40:22-Introduction15:37Course OverviewPreview06:30Pre-RequisitesPreview06:04Python Tools NeededPreview03:03-Sequence Types07:55:14IntroductionPreview01:23Sequence Types – LecturePreview17:10Sequence Types – CodingPreview27:23Mutable Sequence Types – Lecture07:18Mutable Sequence Types – Coding18:06Lists vs Tuples21:50Index Base and Slice Bounds – Rationale15:14Copying Sequences – Lecture29:25Copying Sequences – Coding23:28Slicing – Lecture32:08Slicing – Coding14:42Custom Sequences – Part 1 – Lecture10:40Custom Sequences – Part 1 – Coding34:00In-Place Concatenation and Repetition – Lecture05:34In-Place Concatenation and Repetition – Coding07:27Assignments in Mutable Sequences – Lecture07:03Assignments in Mutable Sequences – Coding10:19Custom Sequences – Part 2 – Lecture09:17Custom Sequences – Part 2A – Coding17:54Custom Sequences – Part 2B – Coding34:49Custom Sequences – Part 2C – Coding21:10Sorting Sequences – Lecture17:52Sorting Sequences – Coding25:52List Comprehensions – Lecture17:54List Comprehensions – Coding47:16-Project 101:00:16Project Preview07:32Project Solution: Goal 140:31Project Solution: Goal 212:13-Iterables and Iterators04:51:39IntroductionPreview02:53Iterating Collections – Lecture11:19Iterating Collections – Coding20:18Iterators – Lecture06:21Iterators – Coding11:44Iterators and Iterables – Lecture11:22Iterators and Iterables – Coding28:03Example 1 – Consuming Iterators Manually26:31Example 2 – Cyclic Iterators31:33Lazy Iterables – Lecture03:44Lazy Iterables – Coding14:59Python’s Built-In Iterables and Iterators – Lecture02:24Python’s Built-In Iterables and Iterators – Coding14:21Sorting Iterables08:51The iter() Function – Lecture06:26The iter() Function – Coding13:59Iterating Callables – Lecture04:42Iterating Callables – Coding15:53Example 3 – Delegating Iterators07:41Reversed Iteration – Lecture09:49Reversed Iteration – Coding20:00Caveat: Using Iterators as Function Arguments18:46-Project 217:01Project Preview03:29Project Solution: Goal 105:50Project Solution: Goal 207:42-Generators02:11:27IntroductionPreview01:21Yielding and Generator Functions – Lecture17:38Yielding and Generator Functions – Coding17:33Example – Fibonacci Sequence15:31Making an Iterable from a Generator – Lecture06:59Making an Iterable from a Generator – Coding06:40Example – Card Deck11:04Generator Expressions and Performance – Lecture09:17Generator Expressions and Performance – Coding30:19Yield From – Lecture02:36Yield From – Coding12:29-Project 301:01:58Project Preview04:15Project Solution: Goal 141:46Project Solution: Goal 215:57-Iteration Tools04:25:49IntroductionPreview04:22Aggregators – Lecture10:05Aggregators – Coding26:28Slicing – Lecture03:18Slicing – Coding11:33Selecting and Filtering – Lecture10:02Selecting and Filtering – Coding15:07Infinite Iterators – Lecture05:29Infinite Iterators – Coding18:49Chaining and Teeing – Lecture08:40Chaining and Teeing – Coding18:51Mapping and Reducing – Lecture15:54Mapping and Reducing – Coding18:16Zipping – Lecture03:15Zipping – Coding06:54Grouping – Lecture10:00Grouping – Coding27:01Combinatorics – Lecture09:30Combinatorics – Coding (Product)21:26Combinatorics – Coding (Permutation, Combination)20:49-Project 402:32:14Project – Preview11:49Project Solution: Goal 143:50Project Solution: Goal 238:41Project Solution: Goal 307:17Project Solution: Goal 450:37-Context Managers03:34:00IntroductionPreview08:02Context Managers – Lecture22:46Context Managers – Coding37:10Caveat when used with Lazy Iterators03:49Not just a Context Manager07:33Additional Uses – Lecture06:04Additional Uses – Coding36:03Generators and Context Managers – Lecture10:46Generators and Context Managers – Coding13:12The contextmanager Decorator – Lecture09:41The contextmanager Decorator – Coding24:26Nested Context Managers34:283 more sectionsRequirementsThis 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.)Part 2 of this Python 3: Deep Dive series is an in-depth look at:sequencesiterablesiteratorsgeneratorscomprehensionscontext managersgenerator based coroutinesI 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.Each section is followed by a project designed to put into practice what you learn throughout the course.This course series is focused on the Python language and the standard library. There is an enormous amount of functionality and things to understand in just the standard CPython distribution, so I do not cover 3rd party libraries – this is a Python deep dive, not an exploration of the many highly useful 3rd party libraries that have grown around Python – those are often sufficiently large to warrant an entire course unto themselves! Indeed, many of them already do!***** Prerequisites *****Please note that this is a relatively advanced Python course, and a strong knowledge of some topics in Python is required.In particular you should already have an in-depth understanding of the following topics:functions and function argumentspacking and unpacking iterables and how that is used with function arguments (i.e. using *)closuresdecoratorsBoolean truth values and how any object has an associated truth valuenamed tuplesthe zip, map, filter, sorted, reduce functionslambdasimporting modules and packagesYou should also have a basic knowledge of the following topics:various data types (numeric, string, lists, tuples, dictionaries, sets, etc)for loops, while loops, break, continue, the else clauseif statementstry…except…else…finally…basic knowledge of how to create and use classes (methods, properties) – no need for advanced topics such as inheritance or meta classesunderstand how certain special methods are used in classes (such as __init__, __eq__, __lt__, etc)Who this course is for:Python developers who want a deeper understanding of sequences, iterables, iterators, generators and context managers.Get Python 3: Deep Dive (Part 2 – Iteration, Generators) downloadPurchase Python 3: Deep Dive (Part 2 – Iteration, Generators) courses at here with PRICE $199 $38