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 is Python Decorator?

0 Answers  


What is loop and types?

0 Answers  


How to concatenate two lists in python?

0 Answers  


Why python is so popular with developers?

0 Answers  


What is json? Describe in brief how you’d convert json data into python data?

0 Answers  






Does python support interfaces like in java?

0 Answers  


Does apple use python?

0 Answers  


How to handle deadlock in python.

0 Answers  


What is the difference between range and xrange functions?

0 Answers  


What are dict and list comprehensions?

0 Answers  


Is there a way to remove the last object from a list?

0 Answers  


How do I check if python is installed?

0 Answers  


Categories