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 difference between list and set in python?

863


What is gui in python?

940


What is a model in python?

860


Which is better ruby or python?

791


What is an f string in python?

931


What is module in python?

908


What do u mean by instance?

835


How do I run a python script in windows?

905


Write a program to find the max value from a list without using max()?

785


Why numpy is used in python?

856


In python, how do I check if a list is empty?

869


What is repr() function in python?

899


Explain the use of try: except raise, and finally?

791


Tell me what's the process to get the home directory using ‘~' in python?

880


Is empty python dataframe?

867