I have a set of string count in the form of set and I want to divide it by some int value.
Example:
Counter({'dlr': 21, 'said': 18, 'total': 17, 'bankamerica': 13, 'bank': 11, 'analyst': 9, 'prev': 9, 'februari': 8, 'york': 8, 'would': 8, 'price': 8, 'time': 8, 'wheat': 7})
I want to divide it by the some int value so that I will get the word with count divided by that int value.
I am getting TypeError: cannot concatenate 'str' and 'int' objects.
collections.counter, which is more like a dictionary. Also, please post the code that is giving you this error