Programming Languages
Python
Subjective
Sep 30, 2025
Explain list comprehension with example.
Detailed Explanation
Concise way to create lists. Example: squares = [x**2 for x in range(10) if x % 2 == 0] creates list of squares of even numbers.
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts