What is LIST comprehensions features of Python used for?
Answer Posted / 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 View All Answers
What are python methods?
How are arguments passed by value or by reference?
Draw a comparison between the range and xrange in python?
What is __ main __ in python?
How python maintains conditional blocks?
What is a dictionary in python programming?
How to remove whitespaces from a string in python?
Is multithreading possible in python?
What is a super constructor?
Which module(s) of python can be used to measure the performance of your application code?
How can I evaluate an arbitrary python expression from c?
What is python method?
How can you organize your code to make it easier to change the base class?
How many hours does a python sleep?
Which module is used to control the gpio in python?