I have a dictionary in a below format:
folders = {'Master folder': ['Training'], 'Child folder': ['Training videos', 'Training documents', 'Training workouts', 'Training practicals']}
I want to count the values as below is expected,
count_of_masterfolder = 1
count_of_childfolder = 4
So far I did this,
co_master = folders.items['Master folder']
co_child = folders.items['Child folder']
print(co_master, co_child)
Am getting this error:
co = folders.items['Master folder']
TypeError: 'builtin_function_or_method' object is not subscriptable
What should I do?