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 abc abstractmethod?
Does python have multiple inheritance?
What are the advantages of using python?
What kinds of patterns could I enforce on the code to make it easier to translate to another programming language?
Is end a keyword in python?
What are local variables in python?
What does if __name__ == “__main__”: do?
How you can convert a number to a string?
What do you mean by python literals?
Does return end a function python?
How do you get all values from a python dictionary?
What are domains and tuples?
Can we write else statement try block in python?
What is pydoc command?
Explain about python break, continue and pass?