What is LIST comprehensions features of Python used for?



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

Post New Answer

More Python Interview Questions

Can you use bootstrap with python?

1 Answers  


Differentiate between deep and shallow copy?

1 Answers  


What is a dictionary in python?

1 Answers  


Difference between python list comprehension vs. Map?

1 Answers  


What is used to create Unicode string in Python?

1 Answers  


How memory is managed in python?

1 Answers  


Is python good for making apps?

1 Answers  


What does r in a circle mean?

1 Answers  


Tell me what is the difference between xrange and range?

1 Answers  


What does file flush mean?

1 Answers  


What a blank curly brace initialize? A dictionary or a set?

1 Answers  


Tell me what is the difference between django, pyramid, and flask?

1 Answers  


Categories