How to use list comprehension in Python | 2MinutesPy
ฝัง
- เผยแพร่เมื่อ 14 ต.ค. 2024
- #list #listcomprehension #python #pythonprogramming #2minutespy
🖐Hey, want to know about list comprehension in Python?
🐍 In this video, we're diving into the world of list comprehension - a super handy technique in Python that allows you to create lists more concisely and elegantly.
I'll walk you through the basics, breaking down how list comprehension works and why it's so useful with examples.
More 2 Minutes Python Tutorial:
How to use map() in Python: • How to use map() funct...
reverse() vs. reversed() in Python: • Python's reverse() Vs ...
Why Flask(__name__) is Used When Creating a Flask App? • Why Flask(__name__) is...
What is Global Interpreter Lock in Python? • Global Interpreter Loc...
What is a Lambda Function in Python? • What is a Lambda Funct...
Why __init__.py File is Used in Python Projects: • Why __init__.py File i...
if _name_ == "__main__" in Python: • What if __name__ == '_...
Python's seek() and tell() functions in 2 Minutes: • Understanding Python's...
Python Threading in 2 Minutes: • Python Threading in 2 ...
Python's super() function in 2 Minutes: • Python's super() Funct...
How to Use *args and **kwargs in 2 Minutes: • How to Use *args and *...
Python's ABC (Abstract Base Class) in 2 Minutes: • Python's ABC (Abstract...
Python's _init_ Method in 2 Minutes: • Python's __init__ Meth...
Python's _getitem_ Method in 2 Minutes: • Python's __getitem__ M...
Subscribe to / @2minutespy for more such videos.
@2MinutesPy
Can't imagine someone can explain this in 2 minutes hats off to you man
Thanks
F*ck MAN. I'm just a begginer, started learning python a few days ago, and no one was able to explain it so clearly. THANK YOU SOOOOOOOO MUCH. Hope your channel will grow into one of the biggest in the space, because it deserves. 🔥🔥🔥🔥
Great to hear!
it crazy how you made me understand this concept so easily! THANK YOU!!
Glad it helped!
I ve been using list comprehension ever since in scraping project, its been a blast
Thanks, this was the best way to understand list comprehension.
Loving python.
Great to hear!
List comprehension and for loop, both are good and must be used periodically
Great video :D
Thanks! 😁
Very nice sir....
Thanks and welcome
Yeah I use it too when working with lists
Cool
Can u take input using list comprehension
Yes, absolutely.
for example:
user = [int(input("Enter a value: ")) ** 2]
for val in user:
print(val)
👏🏻👏🏻👏🏻👏🏻
damn that's crazy
Thanks man
G
These AI channels are getting out of hand
ChatGPT script, AI voice actor