List comprehensions in Python [Python comprehensions #1]

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

This guy is good. I'm just wondering why it took me this long to find this channels

judeleon
Автор

You should have more subscribers man, your videos are really helpful, thank you.

AlanZoomu
Автор

Clear and concise, for sure ... Instructive and educational ... Good job!

bulldawg
Автор

If you write the nested list comprehension on several lines then you can clearly see which loop is the inner and which is the outer loop as the lines look alike the nested for loop.

brotherlui
Автор

Very clear and concise explanations, thank you!

cormano
Автор

I wish you were my tutor, like I'm saying a physical tutoring part. But I'm still more than happy with this. Hoping to see more from you sir.

dhananjaykansal
Автор

Can you include a use case where we have to replace a value in the list ? example - if you have a list a = [3, 5, 11], replace 11 with 4 if the sum of list is less than 21 and list contains 11.

bolonabolona
Автор

Hey in the last part of tuto nested list comp or itertools can be done easily through zip() right ?

karthikelumalai
Автор

The comprehension creation is more optimized compared to the classic list creation or the code execution time is the same ?

RaffaeleSellittoNiInF
Автор

Hi, why did you compare p < threshold and put that unnecessary continue into the loop? Not the best example to convert into a comprehesion. if p >= threshold: list.append() would have been more accurate.

brotherlui