Python - List Comprehensions Tutorial

preview_player
Показать описание
List Comprehensions are a great helper to access, filter or manipulate data stored in a list. Let's dive into the "what" and "why" in this video!

#pythonlistcomprehensions #python #learnpython

----------

• Follow @maxedapps and @academind_real on Twitter

See you in the videos!

----------

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

i try to find method to find min element in list[ ][ ][ ] for 2 hours! Only your video help me. Thank you!! With love from Ukraine

alexeysirenko
Автор

Thanks for a great video. Now nested comprehensions make sense.

Kralnor
Автор

Hi Sir, After many days I am watching you.

shubhampatrick
Автор

Best Video to learn list List Comprehensions >>Thx

khaledal-falihi
Автор

Badass tutorial, keep up the good work.

JuninxD
Автор

Thank you great video. It would be even better to us begginer in Python if you also compared the last the two examples for lup with List Comprehensions because we who are beginners is not easy to understand choprehension for loop. For example in the first example for lup which is clear you are use the name for the elements within the list “items’ this is completely clear. However, in the second example we have “for user in user” which I cannot understand.
I would also ask if you you find the time to explain in the example below where is the variable y [ ] – list how this codec Works. hope I'm not too boring. Thanks a lot in advance
# calculate Q
c = 50
h = 30
# use thi formule Q = square root of [(2*c*d)/h]
import math
x = []
y = [i for i in input('give me a number: ').split(', ')] #
for d in y:

print(', '.join(x))

mikijasar
Автор

can you explain this? >>> return 1 in [c in word for c in charlist]
for c in charlist: but then I am lost.

zakjay
Автор

Thank you for a very informative video, you are very good teacher, but i have two questions,

1) Is it possible to use list comprehension with ONLY IF STATEMENT?

2) is it possible to use ELIF statements in list comprehension? Please help or refer me to a lesson.

SagangaKapaya
Автор

How does he comment everything at the same time with #?

Igor-vkfl
Автор

great video and all but the most important thing is HOW DID YOU COMMENT OUT MULTIPLE LINES AT ONCE? i have never wanted an answer so bad.

michaelmurphy
Автор

Thanks for the nice tutorial! Is it possible to use functions as conditions and list processes?

ernstmayer
Автор

First comment, I would like to know when the next Udemy course is going to be launched?

adrian-
Автор

Your pronunciation of certain words ('two', 'to', do, ...) is very irritating.

willsee