Search code examples
pythontypeerrornonetype

TypeError: 'NoneType' object is not iterable


What does TypeError: 'NoneType' object is not iterable mean? Example:

for row in data:  # Gives TypeError!
    print(row)

Solution

  • It means the value of data is None.