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 |
Write a program to show the singleton pattern used in python.
What does float () do in python?
What is loop and types?
What is the difference between append() and extend() method in python?
What is encapsulation in python?
Why we are using a python dictionary?
How do you use raw_input in python?
Which python library is built on top of matplotlib and pandas to ease data plotting?
What is decorators?
Write a program to read and write the binary data using python?
How to you make a python script executable on unix?
Explain how to overload constructors (or methods) in Python.