Python | List Comprehension in 2 minutes

preview_player
Показать описание
This two minute Python scripting tutorial is focused on List comprehension. We can condense an expression, a loop and condition into a single line of code easily using List Comprehension, one of the coolest features of python.

=============================

➤ Full Article

➤ Impatient Programmer:

➤ Exercises:

=============================
INTERMEDIATE EPISODES:

♦ Impatient Programmer

=============================
PLAYLISTS:

➤ Let's Learn C++: INTERMEDIATE

➤ Let's Learn C++: BASICS
➤ Let's Learn PYTHON: BASICS

➤ Let's Learn PYTHON: OOP

➤ Let's Learn PYTHON: Scripting

➤ Secret Projects

=============================

--- FOLLOW ME! ---

Music by Juto:

=======================================

New Episode (nearly) Every Friday

=======================================

PATREON SUPPORTERS!
- Marcus G.
- JK
- Yu-Chiang H.

=============================
☁♡ Keep the Dream Alive! ♡☁

My comments and words are my own and do not represent the views or opinions of my employer in anyway.
Рекомендации по теме
Комментарии
Автор

The Coolest python video ever.
Your accents are so accurate and clear that isn't need to be translating.

eianlee
Автор

Thanks for this excellent and short explanation.
Two minutes well spent.

allahakbar
Автор

Good examples used! Good, clear examples make your videos easier to understand. Good job!

Valium_x
Автор

Your web-site is not working. BTW, Trevor it is the best idea ever! I'll still it from you :))

mynameisZhenyaArt_
Автор

you missed dict comprehension and set comprehension i.e

>>> {hex(v): v ** 2 for v in range(10)}
{'0x0': 0, '0x1': 1, '0x2': 4, '0x3': 9, '0x4': 16, '0x5': 25, '0x6': 36, '0x7': 49, '0x8': 64, '0x9': 81}

>>> {i for i in [1, 1, 2, 3, 2, 4, 5, 7, 6, 7]}
{1, 2, 3, 4, 5, 6, 7}

Creuilcreuil
visit shbcf.ru