Skip to content

Function to add a key to existing keys list #21

@yogeshj83

Description

@yogeshj83

Is there a way by which I can add a key to the existing keys list?
E.g.

from multi_key_dict import multi_key_dict

k = multi_key_dict()
k['kilo', 'k'] = 'kilogram'

Now I want to add 'kg' in the keys list i.e. my multi_key_dict should look like
k['kilo', 'k', 'kg'] = 'kilogram'

is there a simple way to achieve this?

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