๐ Beginning Python Programming / Module: List & Collection
List comprehension
๐ Beginning Python Programming / List & Collection / List comprehension
# Given a list L, we can transform each element with following syntax L2 = [x*2 for x in L]