Solid error in python

You need iterate through sublist. This has been discussed earlier in your post: