So for example, in the dictionary, the letter 'A' has a value of .8237
What I wan't to do is replace every letter with the value with .8237 to D in the string (not the dictionary)
I've tried this without success and It's obvious why it wouldn't work:
if sorted(dictionary.values())>=.01:
code = code.replace(dictionary[letter],'Z')