Use list comprehension with begin/end blocks