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
How does a function return values?
What is a static relationship?
What is python? What are the benefits of using python? What do you understand of pep 8?
Write a program to show the singleton pattern used in python.
What is json? How would convert json data into python data?
How do you check if a string contains a substring in python?
Why is the order in python dictionaries and sets arbitrary?
Why python is referred as glue code?
Which database is best with python?
What does ord () do in python?
Which is best python or r?
What is a dataframe in python?
What command do we use to debug a python program?
What is dynamic typing in python?
How can you sort a list in reverse order in python?