Using lists effectively in Python

preview_player
Показать описание

In this video I show several convenient ways to use lists more effectively when programming in Python 3 or Python 2.
Рекомендации по теме
Комментарии
Автор

14:06
You can achieve the same filtering with list comprehensions:

filtered_list = [x for x in names if x.startswith("j")]
>> "joe", "jean"

But you can also capitalize it:

filtered_cap = [x.capitalize() for x in names if x.startswith("j")]
>> "Joe", "Jean"

Great Tutorials btw, learned a lot!

josephturi
Автор

Good tut! What the IDE you are using?

archtaurus
join shbcf.ru