I have a list of about 50 strings with an integer representing how frequently they occur in a text document. I have already formatted it like shown below, and am trying to c
Just call dict():
>>> string = [('limited', 1), ('all', 16), ('concept', 1), ('secondly', 1)] >>> dict(string) {'limited': 1, 'all': 16, 'concept': 1, 'secondly': 1}