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 you convert a number to string?
What is pylintrc?
Is python slower than c?
Is set sorted in python?
What is a raw input in python?
Is Python good for backend?
Why do we need to overload operators?
What is class in python?
How do you convert a number into a string?
What are the types of basic functions in python?
Which method removes leading and trailing blanks in a string?
Is there a switch or case statement in python? If not then what is the reason for the same?