listcomp2.py (original)


# listcomp2.py

strings = ['Some string','Art','Music','Artificial Intelligence']
print [x.lower() for x in strings if len(x) > 5]