combinding a list of lists into new lists in python -


i have list of lists

list_of_lists[['front','stuff'],['back1,'stuff'],['back3','stuff'], ...['back...', 'stuff']] 

i want take front list , append each of lists:

['front','stuff','back1','stuff'] ['front','stuff','back2','stuff'] ['front','stuff','back3','stuff']  .... ['front','stuff','back..','stuff'] 

i know can set front = lists_of_lists[0] ['front','stuff']

how iterate , combine front , backs, each own list?

[list_of_lists[0] + in list_of_lists[1:]]   

or if want avoid temporary slice

front = list_of_lists[0] [front + j i, j in enumerate(list_of_lists) if i]   

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -