I am trying to print numbers from a list in series without the "[]" and the ",". For example I have this code.
Bucket = [[] for i in range(2)]
result = []
for i in Bucket[::-1]:
for j in i:
result.append(j)
print result
Here Bucket has the value:
[[2, 4], [1, 3, 5]]
And the result has value:
[1, 3, 5, 2, 4]
I want the value of result to be printed as:
1 3 5 2 4