List comprehension and generator expressions - Intermediate Python Programming p.4

preview_player
Показать описание
Welcome to part 4 of the intermediate Python programming tutorial series. In this part, we're going to talk about list comprehension and generators.

To begin, let's show a quick example and reason for both. A generator that is used commonly is Python 3's range() generator (Python 2's xrange).

Рекомендации по теме
Комментарии
Автор

this channel just doesn't get old.

RandomAlexus
Автор

Good to see instructors also make mistakes. That way, I get to think, I'll just practice more. Thanks.

turboromy
Автор

helpful guide. I'm going to google most of the stuff you type in because I need definitions of what they do otherwise they just fly waaay over my head.

sunmakergg
Автор

one of the better intro videos on generators

BrendanMetcalfe
Автор

i love that you leave in the errors. super helpful!

cupajoesir
Автор

Can't thank you enough for this intermediate series. Perfect for what I've learned since watching your beginner series. Love the new screen capture layout and everything. Also, I'm a composer so I'm curious about that speaker I see in the background. Do you have a full set up with a sub? Do you secretly blast EDM music at night?

ianrees
Автор

This is a great video. I knew what generators were, and what list comprehensions were, but didn't realize how similar they were and the relative advantage of each.

If YouTube lets you highlight particular videos of your own, make this a 'Gold Star' or 'Blue Ribbon' one or whatever. It really is great.

michaellake
Автор

keep pumping these out, very useful, thanks.

Qornv
Автор

I ran: i = in python2 with 32GB of ram. My ram cried until python crashed.

jeremygillespie
Автор

keep up !! thanks to sentdex i am getting better at python programming

MrOnizukakira
Автор

such a well demonstrated tutorial, thank you.

alan
Автор

The parenthesis are a bit confusing, because I'm always associating those to tuples

Автор

Hi, I know this has nothing to do with python bu what keyboard do you use?

Tutoelectro
Автор

Great video series.. thx for sharing..

neoXXquick
Автор

Not python related but what do you record your screen/webcam with?
And as always, great video -- this series is exactly what I needed (stuck between 0 and hero)

rrampaer
Автор

For a moment, I thought that the computer was going to explode after the minute 4:54. XD

francogomezgarcia
Автор

I believe in Python 2.7 you can use xrange() in order to get around the memory issue

farficknuger
Автор

Thank you very much, this helps me a lot

rotrose
Автор

What about
a = list(range(10))
Is it a generator or a list?

fabiogulmini
Автор

Now i dont understand it when i watch intermidiate python and when i watch basic python i start to think why the hell am i watching a totourial on what strings are

dustbinsavesyou
join shbcf.ru