Skip to content
Advertisement

Extract inner list content and write to csv with writerow loop

How do I write only content of the inner loop in rows to csv file?

JavaScript

got:

JavaScript

want in abcd.file:

JavaScript

Advertisement

Answer

your lst is a list inside a list, so in order to print the item inside you need to use [0]

try this:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement