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
- 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.
00:00 - Intro
00:15 - Syntax
Impressive. Not just what Python can do, but especially the clear and understandable way you present it. Thanks!
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.
04:54 - Generate a list from scratch
05:52 - Performance benefits
Please explain recursion
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!
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 ❤
More User Perspectives
🔥🔥🔥
@ridaazzabi3233This 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.
Loved it, liked your visual explanation to make things simple to understand.
@AbhishekKumar-ub8coYou saved my final exam thank you so much.
@Spacehamster327Hello madam, I wanna become extremely confident in doing coding in python, please help me as a beginner
@steveigbenThis 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.
@allisonrosmloved it.
@ritzchavanpatilIm old school! This blew me away first time I saw it!!!
@londalecarter3482Greatest and easiest explanation 🫡 you provide for every topic thanks ✨
@ankurrollno2181Can you make a video on recursion
@AayushNagar25👍👍👍
@hadibqA 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.
@brucea9871wow i love ur vids ur voice is so smooth and beatiful
=
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?
@TKOEFOthers, 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!
@kents7260Amazing video
@josemiguelrojas500Anyone who writes nested for loops as a list comprehension immediately goes on my Expendables list when the zombie apocalypse arrives.
@bin4ry_d3struct0rI am practicing python as I learn English. I really love this channel
@ElJhovaFLKey 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-wk3ivcould mention generators with list comprehension. use ( ) instead of [ ] , and you will get generator. which will produce next item only if needed
@bogaczewwhere is the parallelize link in the description?
@lazyelectron8376Can 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.
I am so glad I found you. You might have changed my life without knowing it. 😊
@osamudianmenigbinoviathat performance comparison is insane 😲
@DreQuearywho is the instructor ?
@mohamed3id012Thank you.
@dreamphoenix😍
@EJ7-707I 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
@alierlalik7196wow!! thank you
@clifordmichel8981I 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
@MissouriClydesdalesTbh I mostly use this to have maximal heaps with heapq
@Wildspeckyoure 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
@RaihanRisadWanted to visualize about asyncio in python
@RAGHAVGOEL-k8fwho's going item for item now?
@uliveulearnandregretI didn't know the list comprehension was faster than for loops. For loops are archilies heels of python 😂
@FUNNEDUCATIONI didn't know the list comprehension was faster than for loops. For loops are archilies heels of python 😂
@FUNNEDUCATIONThank you!
@emilyamalkin4367Can we use n range function on a data file fields
@suryaprakashkale9586very good explanation
@TaiNguyen-p9t2zthis is the best channel i found today. you explained so clearly loved it
@DipanshiGarg-e7pCan you place your list comprehension on multiple lines to make it easier to read?
@thevenkatfilesLa révolution!!! against ai ✊️✊️✊️
@APOPHISCABest 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