Turning Learners Into Developers
Codekilla
CODEKILLA
back to course
Lesson 26 / 11423%
Collections7/35

List Comprehension

Build a new list in one expressive line.

// list — ordered · mutable · duplicates ✓'apple'[0]'banana'[1]'mango'[2]'grape'[3]fruits = ['apple', 'banana', 'mango']
Visual explanation diagram · click steps to walk through it

This lesson is Pro only.

Unlock every premium lesson and module — Pro from ₹299 / month (or ₹999 / year, saves ~₹2,589).

Sign in to unlock
// feedback.matters()
Did this lesson help you?