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 |
Can you use bootstrap with python?
Differentiate between deep and shallow copy?
What is a dictionary in python?
Difference between python list comprehension vs. Map?
What is used to create Unicode string in Python?
How memory is managed in python?
Is python good for making apps?
What does r in a circle mean?
Tell me what is the difference between xrange and range?
What does file flush mean?
What a blank curly brace initialize? A dictionary or a set?
Tell me what is the difference between django, pyramid, and flask?