I need to convert a series of lists into one single line of text separated by a blank space
def Function(lists):
Numbers= str(len(lists))+ " "
for item in lists:
for items in item:
Numbers = Numbers + str(items) +' '
print Numbers
Data = [[1,2,3],[10,20,30]]
Function(Data)
this should return "2 1 2 3 10 20 30" However this approach is very slow.
is there a way to do this faster?