C3W2 exercise 2 got dtype object in array

Hi! I have a problem with exercise 2. I’ve checked all the types that are in my batch, getting either list or int, but still no evidence of “object” type. Hope someone had similar error and resolved it successfully)

btw I saw people also stuck on this error, but haven’t seen any tips on how to resolve that problem

I found the mistake! Just mistyped while checking if the length of the line is less than max_length, and used “<=” instead of “<”.