1.

Write note on list comprehensions?

Answer»

List comprehensions:

List comprehension is a simplest way of creating sequence of elements that satisfy a certain condition. 

Syntax:

List = [expression for variable in range]



Discussion

No Comment Found