RUVIDEO
Поделитесь видео 🙏

Python Programming: Lesson 47 - Advanced Functional Programming and the Walrus Operator смотреть онлайн

PLEASE SUBSCRIBE!!!

In the previous video (https://youtu.be/S4jd5uzBUgM), I thought that I had wrapped up the entire Python playlist with tuple unpacking, the ternary operator, and the else statement within a try/except block. In this video, we will review the helpful generators map( function , iterable ) and filter( predicate , iterable ) and also introduce the walrus operator. This is a way to initialize and print a variable at the same time.

s = ( lambda y , z : print( y+z*3 ) )
s( 10 , 15 ) # 55

Above is an example of a lambda function that prints rather than returns something. This adds to our understanding of functional programming. We can also review the map(function,iterable) and filter(predicate,iterable) generators, which are used heavily in this video to filter the inputs and then map the resultant outputs, OR map the inputs and filter the resultant outputs.

map( function , iterable ) is a generator that YIELDS the values of the function applied to each of the elements in the iterable

filter( predicate , iterable ) is a generator that YIELDS the elements in the iterable for which the predicate (boolean function regarding each element) is true

1:02 Review of map( function , iterable )
4:47 Review of filter( predicate , iterable )
6:37 NEW: Lambda Functions that Print
10:55 NEW: Mapping a Filtered Collection of Elements in an Iterable (filter then map)
13:44 NEW: Filtering a Mapped Collection of Elements in an Iterable (map then filter)
15:13 NEW: Walrus Operator (assignment operator within a print statement)

Oh wait, there's even more content...check out bubble sort in Python here! https://youtu.be/G38GZ6W56m4

Thanks for watching, and PLEASE SUBSCRIBE!!!

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Python Programming: Lesson 47 - Advanced Functional Programming and the Walrus Operator» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.