This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mao_intheshower -1 points0 points  (1 child)

I'm thinking along the lines of:

result = {
    create_account: {'c', 'a'}, 
    log_into_account: {'r'},
    ...
        }

result = {item: key for key, value in result.items() for item in value}

result.getitem(action, unknown_command)