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 relational operators in python?

0 Answers  


Explain the Meaning of a single and double underscore before an object name?

0 Answers  


What is automation in python?

0 Answers  


Explain the inheritance in python with an example?

0 Answers  


How do you represent binary and hexadecimal numbers?

0 Answers  


What's a python script?

0 Answers  


what are the two (2) parameters available in python map?

0 Answers  


Is python the future of programming?

0 Answers  


Explain try, raise, and finally?

0 Answers  


What does end do in python?

0 Answers  


What is overriding in python?

0 Answers  


What are the disadvantages of Python Recursion?

0 Answers  


Categories