TypeError: 'NoneType' object is not iterable in Python -


what error typeerror: 'nonetype' object not iterable mean?

i getting on python code:

def write_file(data,filename):   #creates file , writes list   open(filename,'wb') outfile:     writer=csv.writer(outfile)     row in data:             ##above error thrown here       writer.writerow(row) 

it means "data" none.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -