Which programming language is this?
squares = [x*x for x in range(10)]
Answer: Python
A list comprehension
Play Programming Languages ▸
[... for ... in ...] is Python.squares = [x*x for x in range(10)]
Answer: Python
[... for ... in ...] is Python.