For example i know in Python you can append a list to list.
list = [a,b,c]
list += [d,e,f]
print(list)
[a,b,c,d,e,f]
Is there a way to accomplish this is list comprehension. I know we can define a list based on element, but is there a way to create a new list with list comprehension where i am define a segment of the list each iteration. Ie.
list = [function_that_returns_a_list(var) for var in vars]