j.crater,
did you run the code you posted. you can't print(my_Dictionary), its a dict.
Here's another way to do it:
did you run the code you posted. you can't print(my_Dictionary), its a dict.
Here's another way to do it:
aString = "Mississippi" my_dictionary = dict() enumerated_string = enumerate(aString) print("enumerated_string:\t" + str(enumerated_string)) for element in enumerated_string: print(str(element)) my_dictionary[element[0]] = element[1] # rather than this, since you don't really need the names of the tuple elements: #for number, letter in enumerated_string: # my_dictionary[number] = letter print("my_dictionary:\t" + str(my_dictionary))