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

How can you convert a number to string?

0 Answers  


What is pylintrc?

0 Answers  


Is python slower than c?

0 Answers  


Is set sorted in python?

0 Answers  


What is a raw input in python?

0 Answers  


Is Python good for backend?

0 Answers  


Why do we need to overload operators?

0 Answers  


What is class in python?

0 Answers  


How do you convert a number into a string?

0 Answers  


What are the types of basic functions in python?

0 Answers  


Which method removes leading and trailing blanks in a string?

0 Answers  


Is there a switch or case statement in python? If not then what is the reason for the same?

0 Answers  


Categories