A list and dictionary is below
main_list = ["projecttype","emptype","Designation"]
sample = {"query": {
"emptype":["Manager"],"projecttype":["temp"],
"from": [
"0"
],
"q": [
""
],
"size": [
"4"
]
}}
How to find from the main_list which key is
last"entered key" in sample dictionaryHow to find from the main_list which key is
first"entered key" in sample dictionary
In this particular scenario
"projecttype"is my output for last entered key which matchesemptypeis my output for first entered key which matches