Lesson 20 of 34 · +120 xp

List Comprehension

Pythonic transform.

Explained simply

Your task

Assign squares = [x*x for x in range(5)]

comp.py
▶ Output (python)
Click 'Run code' to execute your code in a real sandbox.
← Back