Skip to content

Inconsistency in the statement #1

Description

@bpavlows

Inconsistency in the statement

There seems to be an inconsistency between the sorting rules and the expected result:

cryptic_sorter(["aaa", "bbb", "AAA", "BBB"])

# Expected by the exercise:
["AAA", "aaa", "BBB", "bbb"]

The exercise states that letters are compared case-insensitively. Therefore:

"aaa".lower() == "AAA".lower()
"bbb".lower() == "BBB".lower()

These should be considered equal, so the original order should be preserved.

The expected result should therefore be:

["aaa", "AAA", "bbb", "BBB"]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions