Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply sorting on the multiple values of Single key in Dictionary #207

Open
Unime08 opened this issue Jan 4, 2024 · 0 comments
Open

Apply sorting on the multiple values of Single key in Dictionary #207

Unime08 opened this issue Jan 4, 2024 · 0 comments

Comments

@Unime08
Copy link

Unime08 commented Jan 4, 2024

Hello everyone,

I want to apply sorting on the value of multiple values of single key in Dictionary. For example, I have a dictionary with {"K1":"A1,B1,C1,D1","K2":"A2,B2,C2,D2","K3":"A3,B3,C3,D3",}. Now I want to perform sorting on the all third element of values in this case {C1,C2.C3.C4} and after that retrieve the key associated with the value. How to do that in python without converting dictionary into list or something else. If we cannot do it without conversion, in that case how to do it with conversion.

Need help for this assignment question. Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant