list comprehension | List in Python | | Python List | Python tutorial | #shorts #python #ytshorts

preview_player
Показать описание
List in python

list comprehension, Filtter published
after 2010

Given a list lib, using list comprehension
store all the books that was published
after 2010

library = [('book1',2002),('book2',2012),
('book3',2007),('book4',2015),
('book5',2005),('book6',2018)]

new video for python programming
python code for problem solving approach.
- python for beginners
- learn python in simple way.
- first clear basic concepts.
- solve more problems and consistent practice.

for loop in Python Program
python programming for beginners
python programming examples
python for loop
learn python
list comprehension

playlist:
Python problem solving approch

#shorts #ytshorts #python # pythoncode #education #tutorial

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

Not very pythonic in my opinion. I would write: [(book, year) for book, year in library if year>=2010]

kirohtoli