What is LIST comprehensions features of Python used for?
Answer Posted / chaitanya
LIST comprehensions features were introduced in Python version 2.0, it creates a new list based on existing list.
It maps a list into another list by applying a function to each of the elements of the existing list.
List comprehensions creates lists without using map() , filter() or lambda form.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Why lambda forms in python do not have statements?
What is the use of negative indices?
Which language should I learn first c or python?
What is encapsulation in python?
What are loops in python?
Difference between @staticmethod and @classmethod in python?
Is python fully object oriented?
What are the basic datatypes in python?
How do you monitor the code flow of a program in python?
Which the command you use to exit help window in python?
What are the different types of operators in python?
What is string in python?
Is r similar to python?
What is loop in python?
Can you hack with python?