Object of type int has no len. Len в python с условием. int has no len.