Python List Comprehensions Made Easy!!

preview_player
Показать описание
In this video, I'll give you a hack to never forget Python list comprehensions again.

We'll look at a simple example to show how list comprehensions work, then we'll shift to a more practical example and how you would use it in a real-life scenario.

TImestamps
00:00 Intro
00:55 What is a Python list comprehension?
01:12 Simple example
02:14 The magic formula
03:43 Adding a condition
04:04 A Real Example
10:52 Review
11:11 Outro

** Career Path Coding Tracks **

** My Coding Blueprints **
Both FREE in the Travis Media Community

** I write regularly **

** FREE EBOOKS **

LET'S CONNECT!

#pythonprogramming #pythontutorial #learntocode #pythonforbeginners

** Some of the links in this description may be affiliate links that I may get a little cut of. Thank you.
Рекомендации по теме
Комментарии
Автор

Lambda and list comprehension please. Also continue with these short conceptual vids. This one was great 👍

joreilly
Автор

Yes, this is one of these videos I'll come back to over and over and over again!

henrikibsen
Автор

This is brilliant. Straight to the point. Keep it up 👍

nearyou
Автор

Travis I really appreciate your effort on here. I'm a relatively new student to programming and a few months back I was definitely questioning this path and losing motivation daily, but then I came across one of your videos and your enthusiasm/ practical optimism were very refreshing! I now feel that, whatever my goals become as I continue to progress, with discipline and patience I can become a competent and knowledgeable part of this community. SO thank you!

SRXclamation
Автор

Thank you,
Please continue making this type of videos.

AhmedAbdullWahab-kluk
Автор

Finally I understand wtf list comprehension is. Thank you for this video.

tacomax
Автор

This was the video I was looking for - great job breaking things down. Also loved how you gave a foundational example, then a real world example. Subscribed!

mike_
Автор

Please do more conceptual videos like these. Thank you

shashankbheemanapalli
Автор

Great explanation about list comprehension. I often do Codewars and I see that many people use it. I didn't understand it much but now it's clear!

spencersedano
Автор

Perfection! I will definitely make the 100 days project course!

marcosdossantos
Автор

You have really made this simpler 😊.
Thank you so much👍

lauranyaaga
Автор

"But this is clean to me" got you a sub 😂

marie.rousseau
Автор

Thank you so much, I am taking Crush Course on Python by Google, and it was so difficult to understand the syntax of this subject, thank you so much for explaining it in a way that anyone can understand it, not only programmers

origami
Автор

Hey Travis ! I had a hard time understanding list comprehension and your video was a life saver for me. Thank you so much for your effort :)

jiapatil
Автор

Id love a video on using lambdas in list comprehension

Fanta
Автор

How's the community going so far?

wombozombo
Автор

Still don't get it.

The variable "year" is both the new item and the iterator, so how is it not overwriting and infinitely iterating as new vaues are produced.

Also if the argument "for" is still used, just in square brackets, surely this is still just as computationally heavy as a common for loop?

NoNowwwell
Автор

Why can't you look for a project to invest your time in rather than spend time on syntax since you say you are a renowned developer. You could be doing projects in django, fastapi, etc, .

patientson