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 |
Explain python’s pass by references vs pass by value. (Or) explain about python’s parameter passing mechanism?
How we can send email from python?
How do you append to a file?
Why do we need the __init__() function in classes? What else helps?
How is the Implementation of Pythons dictionaries done?
How you can access sessions in flask?
Tell me what is the command to debug a python program?
How do you copy an object in python?
What is slug in python?
What is slice notation in python to access elements in an iterator?
How can you declare multiple assignments in one statement?
Differentiate between range and xrange.