TypeError: object of type 'NoneType' has no len() python fix this? -


how can fix this........ full code below should search members of form , print them , save them csv file

import csv import time   def main():     mylist = [ ]     mylist = read_csv()     ##mylist = showlist(mylist)     searchlist = searchqueryform(mylist)     if searchlist:         showlist(searchlist)     else:             print("i have nothing print")         if len(searchlist) == 0: typeerror: object of type 'nonetype' has no len() 

have no idea means can fix this..

neeed asap

it means searchlist empty. function searchqueryform resulting in empty object. can try print , see


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -