What is LIST comprehensions features of Python used for?
Answer / 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 |
Tell me what are generators in python?
How does python interpreter work?
Explain about different blocks in exception handling?
What is type conversion in python?
Which python library would you prefer to use for data munging?
What is the output of the following code and why?
Does python supports hybrid inheritance?
What is coercion?
What is difference between raw_input and input in python?
Explain pickling and unpickling.
What is the function of gil in python?
Is python better than java?