PythonSkills.org
Courses
Exercices
Challenges
Quizzes
Open console
0 points
Get started
Loading...
Learnig Path /
Python List Comprehension
Readable vs. Overcomplicated
Loading...
Python Terminal
Loading Python...
If it doesn't load, refresh the page.
Loading...
Run Code
Clear
Previous lesson:
Performance benefits of list comprehensions
Next Lesson:
Using generator expressions for large data
Exercices
10
Need Help? Go Back to the Lesson
Simple Transformation: Squares
Filter Even Numbers
Filter Positive Numbers
Avoid Complex Logic: Filtering Odd Numbers Greater Than 5
Create a Nested List of Products
Avoid Too Many Nested Loops
Create a List of Cubes of Odd Numbers
Filter Words Containing 'e'
Create a List of Even-Length Words
List Comprehension vs For Loop Performance
0% complete
0/100
Lists Comprehension
100 exercices
+
Object-Oriented Programming
69 exercices
+
Python Basics
167 exercices
+