Oct-20-2019, 02:32 PM
(Oct-20-2019, 10:33 AM)tahir1990 Wrote: ok got it all clear.But how to export that into CSV file?Show what you have tried.
If save to a list,then can eg use csv module.
import csv lst = ['Alabama', 'Alaska', 'Arizona'] with open('filename.csv', 'w') as myfile: wr = csv.writer(myfile) wr.writerow(lst)
Output:Alabama,Alaska,Arizona