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 difference between list and set in python?
What is gui in python?
What is a model in python?
Which is better ruby or python?
What is an f string in python?
What is module in python?
What do u mean by instance?
How do I run a python script in windows?
Write a program to find the max value from a list without using max()?
Why numpy is used in python?
In python, how do I check if a list is empty?
What is repr() function in python?
Explain the use of try: except raise, and finally?
Tell me what's the process to get the home directory using ‘~' in python?
Is empty python dataframe?