Python - List Comprehension?
- Learner Landmark
- Jan 10, 2023
- 1 min read
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]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