Python Question:

Download Job Interview Questions and Answers PDF

What are the uses of List Comprehensions feature of Python?

Python Interview Question
Python Interview Question

Answer:

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 clause, then zero or more for or if clauses.

Download Python Interview Questions And Answers PDF

Previous QuestionNext Question
What is all the operating system that Python can run on?What is used to create Unicode string in Python?