Python how to count the nested list of lists containing strings
Python how to count the nested list of lists containing strings Question: I have a nested lists of list. I want to know total items in the main and sublists. Then accordingly I want to choose a value for each sublist or item. My code: y = [‘ab’,[‘bc’,’cd’],’ef’] print([len(y[i]) for i in range(len(y))]) alpha=0.5 plot_alpha …