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 tokens in python?
What is a function for flatten an irregular list of lists?
How to copy an object in python?
Can you build web apps with python?
What is a static method python?
What is private method in python?
Is python shell scripting?
What opens a py file?
Is python numpy better than lists?
How do I emulate os.kill() in windows?
What is a CGI script in Python?
How to delete a file or folder?
How do you use n in python?
What do you mean by list comprehension?
Is python 0 based?