0

I have a dictionary like this:

d = {
  "message": "...",
  "type": {
    "color": "...",
    "serverity": "high"
  }
}

I have a function that I wanted to return a value by it's address. for example:

my_func('type\severity')

should return: high.
Is there a way to this?

Neuron
  • 5,141
  • 5
  • 38
  • 59
ehsan shirzadi
  • 4,709
  • 16
  • 69
  • 112

0 Answers0