Q. What is a list comprehension? How is it useful?


Answer =

A List Comprehension is a concise description of a list that shorthand the list creating for loop in the form of a single statement.

• List comprehensions make the code compact and are faster to execute.

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post