Python class list cannot find the length len (list)

returns a list after running a function. The second function uses the list of the first function, but when the list is output, it becomes not a list and cannot be len ().
figure:

The

bin variable is the result of the previous function, and during the debug phase of the first diagram, list is shown.
but I did get the error "int" when I was running WWW= len (bin). "

Why do you ask the Great God for an answer?

Apr.27,2022

error message refers to the function to be called 'len' rather than parameter' bin',. If it is the latter, the error message should be as follows:
TypeError: object of type 'int' has no len ()
has the complete code ever defined a variable with the same name as len?

Menu