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
The string variable is a list of pairs. It means you can do something somilar to this:
string
string = [...] my_dict = {} for k, v in string: my_dict[k] = v