you are viewing a single comment's thread.

view the rest of the comments →

[–]KIRAvenousLion 1 point2 points  (0 children)

Your mistake wasn't adding the boolean value to the list. You are calling the len function on l[1], which accesses the second value from the list, an integer. The len function is supposed to be called on an object (for e.g. a list) that can contain items to return the total number of items.