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 is step size in python?
Does python have static classes?
Are methods objects in python?
Write the command to get all keys from the dictionary.
How do you install a sphinx python?
So, what is an iterator, then?
What is __ main __ in python?
How does python interpreter work?
What does len () mean in python?
Is __ init __ necessary in python?
What is pypi repository?
Why do lambda forms not have statements?
What is the difference between cpython and python?
What is the use of assertions in python?
What is superclass and subclass in python?