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
Post a Comment