as per the title, how to find list length of sublist that made from list and int. For example, give a list
ListNo=[[6,2,5],[3,10],4,1]
it should return LengthSubList 3,2,1,1.
I make the following code,
LengthSubList=[len(x) for x in ListNo]
But, compiler give the following error
object of type 'int' has no len()
May I know what I do wrong?
Thanks in advance