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 |
What is the output of this following statement?
Can a set be sorted python?
Is ruby better than python?
How to use the slicing operator in Python?
Explain about membership operator in python?
Why do we use uuid?
Explain accessor and mutator methods in python?
Is python faster than python2?
How will you use python to read a random line from a file?
What is a lambda in math?
What are disadvantages of python?
Does Python support Multithreading?