# List Comprehensions

################################################################################
words = "Why sometimes I have believed as many as six impossible things before breakfast".split()
words
# list comprehension
# [expr(item) for item in iterable]
[len(word) for word in words]
# declarative imperative code for above
lenghts = []
for word in words :

lenghts

from math import factorial
f = [len(str(factorial(x))) for x in range(28) ]
f
type(f)

################################################################################
