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 |
How can files be deleted in python?
What is memory management in python?
How does pop function works in set data types?
What are the optional statements that can be used inside a <try-except> block in python?
Why is numpy so fast?
How do I publish a package in python?
What do you mean by list comprehension?
What is meant by r strip() in python?
Explain garbage collection in python?
Which ide is best for python on windows?
What is kwargs in python?
What is the best tutorial for python?