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
Does return print in python?
How do you create your own package in python?
Is python better than bash?
How are instance variables different from class variables?
What is difference between set and list in python?
Can constructor be private?
What is map and filter in python?
How will you merge two dictionaries in python?
Will the do-while loop work if you don’t end it with a semicolon?
Is set nesting implemented in python?
Is python 0 indexed?
What is the cost of python certification?
Which software is used for python?
What are the generator functions in python?
What does the ord() function do in python?