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 |
What is Python Decorator?
What is loop and types?
How to concatenate two lists in python?
Why python is so popular with developers?
What is json? Describe in brief how you’d convert json data into python data?
Does python support interfaces like in java?
Does apple use python?
How to handle deadlock in python.
What is the difference between range and xrange functions?
What are dict and list comprehensions?
Is there a way to remove the last object from a list?
How do I check if python is installed?