What is List Comprehensions feature of Python used for?

Questions by SachinDeo   answers by SachinDeo

Showing Answers 1 - 3 of 3 Answers

Priya Patel

  • Oct 19th, 2007
 

List comprehensions help to create and manage lists in a simpler and
clearer way than using map(), filter() and lambda. Each list comprehension
consists of an expression followed by a for clause, then zero or more for or
if clauses.


  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions