Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is abc abstractmethod?

994


Does python have multiple inheritance?

838


What are the advantages of using python?

936


What kinds of patterns could I enforce on the code to make it easier to translate to another programming language?

862


Is end a keyword in python?

874


What are local variables in python?

902


What does if __name__ == “__main__”: do?

838


How you can convert a number to a string?

949


What do you mean by python literals?

877


Does return end a function python?

868


How do you get all values from a python dictionary?

842


What are domains and tuples?

804


Can we write else statement try block in python?

927


What is pydoc command?

847


Explain about python break, continue and pass?

950