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?

ehsan shirzadi
  • 4,448
  • 15
  • 61
  • 108

0 Answers0