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

What do you mean by list comprehension in python?

0 Answers  


Does python has private keyword in python ? How to make any variable private in python ?

0 Answers  


What does do in python?

0 Answers  


What is “call by reference” in python?

0 Answers  


What are the applications of python?

0 Answers  






What kinds of patterns could I enforce on the code to make it easier to translate to another programming language?

0 Answers  


Explain python is one line?

0 Answers  


How do I run a python file in python shell?

0 Answers  


Is python string mutable?

0 Answers  


What are the modes to open a file in python?

0 Answers  


What is a Lambda form? Explain about assert statement?

1 Answers  


What is speech_recognition? Does this ship with python by default?

0 Answers  


Categories