I want to know if there is a way to count element frequencies in a 2D python list. For 1D lists, we can use
list.count(word)
but what if I have a list:
a = [ ['hello', 'friends', 'its', 'mrpycharm'],
['mrpycharm', 'it', 'is'],
['its', 'mrpycharm'] ]
can i find the frequency for each word in this 2D list?