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

Which is the invalid variable assignment from the below?

0 Answers  


What is flask- wtf? Explain its features.

0 Answers  


How do you perform pattern matching in python? Explain?

0 Answers  


how do substitute a pattern in a string using re module

0 Answers  


How to write a functioning volume for python?

0 Answers  






How ternary operators are used in python?

0 Answers  


What is a decorator?

0 Answers  


What does this mean: *args, **kwargs?

0 Answers  


What is automation in python?

0 Answers  


What is split() function?

0 Answers  


What’s the difference between a list and a dictionary?

0 Answers  


Which are the file related libraries/modules in python?

0 Answers  


Categories