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 |
How will you remove an object from a list?
What does Django mean in Python?
What is memory management in python?
Why do we want to use break statement in while-loop?
Explain about the programming language python?
What are the programming-language features of python?
Is python full stack?
What does quit () do in python?
What is an egg in python?
What is decorator in python?
Explain global and local variables in python?
Tell me what is the difference between django, pyramid, and flask?