Hacking Secret Ciphers with Python

(Ann) #1

314 http://inventwithpython.com/hacking


Email questions to the author: [email protected]


[('mice', 3), ('cats', 10), ('dogs', 3)]


We will be using the items() method in our getFrequencyOrder() function, but you
should know about the keys() and values() methods too. Remember, in order to use the
return values from these methods as lists, they must be passed to the list() function. The
list() function then returns a list version of the dict_keys, dict_values, or dict_items object.

Free download pdf