im trying to concatenate the content of an array
I have my array like this:
array = []
array = [[123,345],[567,789]]
I am using some code, but it shows me error most of the time and i dont know why, so I looking to change my code so it can works fine.
array = [[123,345],[567,789]]
final_array = reduce(operator.concat, array)
final_array = [123,345,567,789]
The result I need is this:
final_array = [123,345,567,789]
Any suggestions?? Thank you