free web page hit counter
🛡️
Copyright Notice: This video is officially sourced and embedded from YouTube. For all copyright inquiries, reports, or removals, please contact YouTube's legal team here.
Visually Explained

Visually Explained

112,000 subscribers

👁 64,079 views

List Comprehensions - Visually Explained

Video Overview & Insights

🔵 Links & Resources

Have questions or ideas for future topics? Drop them in the comments—we’d love to hear from you and help out!

Looking to make your Python code run faster? Learn how to parallelize your code: https://www.youtube.com/watch?v=p14mkEoY88I&t=53s

— @VisuallyExplainedEducation

- Parallelize your Python code video: https://www.youtube.com/watch?v=p14mkEoY88I

🔵 Chapters

Hello, thanks for your videos. Please, since your videos are for educational purposes, please can you speak more slowly for everybody to understand? Because you have a variety of subscribers around the world and English is not their first language. some of us can easily understand you but when the speed is high we mis some important parts. thanks.

— @cephas1995

00:00 - Intro

00:15 - Syntax

Impressive. Not just what Python can do, but especially the clear and understandable way you present it. Thanks!

— @colinratcliffe3074

02:39 - List comps with strings

04:08 - Conditionals in list comps

i also find lint comprehensions code like plain english (especially compared with map and lambda) provided the operation is simple as accentuated in video.

— @nikhilhalari9774

04:54 - Generate a list from scratch

05:52 - Performance benefits

Please explain recursion

— @vinsavi

08:10 - Parallelize your code

🔵 Python list comprehensions

Hi everyone, thank you for this very informative video.
What do you call it when a list comprehension begins with:
List = [for x, y in ...]
I have an idea for a program but I need to know if list comprehension can be done with taking multiple variables.
Thank you!

— @ignacioleikis1784

In this video, you’ll learn how to use list comprehensions to cut down on lines of code in your program. You’ll also see how they can be more efficient than for loops, but are not suited for all situations.

#Python #listcomprehensions #pythonlistcomps

Great explanation about concept ❤

— @Sriveenkat

More User Perspectives

@

🔥🔥🔥

@ridaazzabi3233
@

This is 15th video in your playlist which comes before For loop.
it is difficult for audience to understand this until the person understands how for loop works.

@AbhishekKumar-ub8co
@

Loved it, liked your visual explanation to make things simple to understand.

@AbhishekKumar-ub8co
@

You saved my final exam thank you so much.

@Spacehamster327
@

Hello madam, I wanna become extremely confident in doing coding in python, please help me as a beginner

@steveigben
@

This course has been such a great way to start off with basic python definitions and principles. I'd suggest a complete beginner with absolutely no python experience starts off with this and then moves on to the more advanced courses. Trust me even though some of them say beginner, if you know nothing about programming you will be lost.

@allisonrosm
@

loved it.

@ritzchavanpatil
@

Im old school! This blew me away first time I saw it!!!

@londalecarter3482
@

Greatest and easiest explanation 🫡 you provide for every topic thanks ✨

@ankurrollno2181
@

Can you make a video on recursion

@AayushNagar25
@

👍👍👍

@hadibq
@

A good explanation of list comprehensions. Initially I was confused by the numbers in front of each line of code. I thought they were line numbers and I thought "What the hell - Python doesn't use line numbers. As far as I know only BASIC does". I soon realized you used the numbers just to indicate various steps and they were not actually part of the code.

@brucea9871
@

wow i love ur vids ur voice is so smooth and beatiful
=

@Amatrex2
@

I had a thought RE: complexity and list comprehensions...whatever transformation must be done on the data, make that a function and then. just call it in the list comprehension. Would that still be faster?

@TKOEF
@

Others, when they are illustrating programming concepts, use overly-complex "clever" code examples instead of doing what you do -- focus on the core principle with very simple, focused code to clearly illustrate. Bravo!

@kents7260
@

Amazing video

@josemiguelrojas500
@

Anyone who writes nested for loops as a list comprehension immediately goes on my Expendables list when the zombie apocalypse arrives.

@bin4ry_d3struct0r
@

I am practicing python as I learn English. I really love this channel

@ElJhovaFL
@

Key part about your videos are well planned and structured examples which help in easily understanding depth of the concepts. Thank you so much for your hard work 🎉

@AmanSingh-wk3iv
@

could mention generators with list comprehension. use ( ) instead of [ ] , and you will get generator. which will produce next item only if needed

@bogaczew
@

where is the parallelize link in the description?

@lazyelectron8376
@

Can you please switch to Dark mode to your apps before creating videos?

Its irritating eyes and cannot watch for long. At least take survey from subscribers which theme suits them.

@sowmithra
@

I am so glad I found you. You might have changed my life without knowing it. 😊

@osamudianmenigbinovia
@

that performance comparison is insane 😲

@DreQueary
@

who is the instructor ?

@mohamed3id012
@

Thank you.

@dreamphoenix
@

😍

@EJ7-707
@

I tried accessing your course on the visually explained website but the sign up option has been disabled. Is the course no longer available or is temporarily not available. Is there any alternative

@alierlalik7196
@

wow!! thank you

@clifordmichel8981
@

I love everything about your videos, Excellent Teaching and Teacher, perfect delivery, great audio, and even the background music is perfect, Will be watching all of your videos, several times! tyvm

@MissouriClydesdales
@

Tbh I mostly use this to have maximal heaps with heapq

@Wildspeck
@

youre incredibly useful. youre gonna grow big. there are tons of technical concepts that needs this kind of commentary and visualization. I hope you understand what you started and grow big into more complex concepts. godspeed

@RaihanRisad
@

Wanted to visualize about asyncio in python

@RAGHAVGOEL-k8f
@

who's going item for item now?

@uliveulearnandregret
@

I didn't know the list comprehension was faster than for loops. For loops are archilies heels of python 😂

@FUNNEDUCATION
@

I didn't know the list comprehension was faster than for loops. For loops are archilies heels of python 😂

@FUNNEDUCATION
@

Thank you!

@emilyamalkin4367
@

Can we use n range function on a data file fields

@suryaprakashkale9586
@

very good explanation

@TaiNguyen-p9t2z
@

this is the best channel i found today. you explained so clearly loved it

@DipanshiGarg-e7p
@

Can you place your list comprehension on multiple lines to make it easier to read?

@thevenkatfiles
@

La révolution!!! against ai ✊️✊️✊️

@APOPHISCA
@

Best python videos!! Thank you. would you consider following topics in future videos (1) how to use assert, more on error handling, and Readings and media, Collections

@udgu4588