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 comprehension? Give an example.



What is list comprehension? Give an example...

Answer / nashiinformaticssolutions

A syntax component called list comprehension makes it easier to create a list using an existing iterable.

For instance:


[i for i in range(1, 10)] = my_list

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

Explain about lambda in python?

0 Answers  


What are python templates?

0 Answers  


Explain split(), sub(), subn() methods of “re” module in python.

0 Answers  


How to remove values to a python array?

2 Answers  


What is instance method?

0 Answers  


Is integer immutable in python?

0 Answers  


What does file flush mean?

0 Answers  


How can we get home directory using '~' in python?

0 Answers  


How is python used in business?

0 Answers  


What is singleton class in python?

0 Answers  


What are the rules for local and global variables in Python?

1 Answers  


What is lambda? Why do lambda forms not have statements?

0 Answers  


Categories