Source Code:
(back to article)
numbers = [1, 2, 3, 4, 5] squares = [x ** 2 for x in numbers] print(squares)
Result:
Report an issue