Answers for "nonetype object is not iterable for python"

0

TypeError: 'NoneType' object is not iterable

def write_file(data, filename): # creates file and writes list to it
  with open(filename, 'wb') as outfile:
    writer = csv.writer(outfile)
    for row in data: # ABOVE ERROR IS THROWN HERE
      writer.writerow(row)
Posted by: Guest on October-28-2020

Code answers related to "nonetype object is not iterable for python"

Browse Popular Code Answers by Language