Please I need help, I have to check if some values exist in dictionary so I have multiple try except statements. So, what I'm thinking is to write a function that takes the dict and checks if that value exist or not (if it didn't exist will return None) but the problem is when I call that function with dict as parameter it gives error since that field doesn;t exits. So here is what I did so far but is giving error in main function:
def main():
  return_value = test(dict["one"]["two"])
And here is the test function:
def test(value):
  try:
    one = value
  except:
    one = None
  finally:
    return one
 
     
     
    