• Did you forget to test sorting?

Question related to mission Cipher Dict (decryption)

 

From the provided initial code:

assert (
    get_plain(
        {
            1: {6: {3: {}}},
            2: {6: {5: {}}, 9: {0: {}, 5: {}}},
            3: {4: {5: {}}},
            6: {6: {4: {}}},
        }
    )
    == "python"
)

But that's not quite the correct. Should be:

{1: {6: {3: {}}},
 2: {6: {5: {}}, 9: {5: {}, 0: {}}},
 3: {4: {5: {}}},
 6: {6: {4: {}}}}

Note the different order of `{5: {}, 0: {}}`.

Or were we supposed to sort? That's doable, and the blog about this did say:

From meticulously sorting keys in the correct order to adeptly navigating through alternating blocks of digits, each step unveils a piece of the puzzle.

The actual "Check Solution" verification doesn't seem to have any such cases where we need to sort. So solutions that don't sort fail the "Run Code" tests but pass the "Check Solution" tests.

@spark856 @freeman_lex