Lesson 20 of 34 · +120 xp
List Comprehension
Pythonic transform.
Explained simply
Your task
Assign squares = [x*x for x in range(5)]
Click 'Run code' to execute your code in a real sandbox.
Lesson 20 of 34 · +120 xp
Pythonic transform.
Assign squares = [x*x for x in range(5)]
Click 'Run code' to execute your code in a real sandbox.