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 |
What is overloading in python?
How are classes created in python?
How can we pass optional or keyword parameters from one function to another in Python?
What are the components of python memory manager?
Should I learn python or scala?
How to access sessions in flask?
Is print a keyword in python?
How do I run a script in python shell?
What is abnormal termination?
Why does python use self?
Difference between __str__ and __repr__?
What is built-in type in python?