Still trying to wrap my head around list comprehensions. Below, 'e' is a list. How would I write this as a list comprehension?
events = []
for req in request:
e = req[attr]
events.extend(e)
I tried the following and it gave me a list of lists([[a,b],[c,d]] rather than a flat list [a, b, c, d]
events = [req[attr] for req in request]