The code below result to list of lists: [[1, 2, 3], [4, 5, 6]]
How to modify it so the result is a simple list:`[1,2,3,4,5,6]?
def functA():
return [1,2,3]
def functB():
return [4,5,6]
def functC():
return None
functs=[functA, functB, functC]
result=[a for a in [funct() for funct in functs] if a]
print result