Dec-08-2018, 01:25 PM
let's keep things simple
output = ['1', '2' ] original = [['verapamil', '0.5', '9.2'],['norverapamil', '0.6', '7.3']] for my_list, value in zip(original, output): my_list.append(value) # use append to add value at the end of the list # my_list.insert(0, value) # use insert(index, value) to insert value at position index print(original)
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs