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 |
Is it easy to learn python?
Tell me what are the built-in type does python provides?
What are python iterators?
Is python a keyword in python?
Do lists start at 0 or 1 java?
How does python handle memory management?
What is difference between input and raw_input?
Is java or python better?
What is the difference between a Set and Dictionary?
What is the output of the below program?
What is a dictionary in python?
How can I make a time delay in python?