List comprehension is a short syntax for creating a new list based on the values of an existing list.
### OUTPUT
[1, 4, 9, 16, 25, 36, 49, 64, 81]
Updated: Feb 10, 2023
List comprehension is a short syntax for creating a new list based on the values of an existing list.
### OUTPUT
[1, 4, 9, 16, 25, 36, 49, 64, 81]
Comments