News

So I'm not a programmer, I took a few classes ages ago, but there are some Python scripts in use on the servers here so I figured I'd start. What I'm trying to do is call an API and get a chunk of ...
Implement a method get that takes a dictionary and a nested key name with levels seperated by . (really.deeply.nested.value in the example) and returns the value if it exists and None if it doesn't.
# printing original dictionary print ("The original dictionary is : " + str (test_dict)) # Convert Nested dictionary to Mapped Tuple # Using list comprehension + generator expression res = [ (key, ...