+ 2
okay. you mean the get method. It's a little bit confusing at first. it's defined like example_dictionary.get (key) if in the example_dictionary is a key:value pair for example {key: 1}. Than the get. method example_dictionary.get(key) will give you the value 1 back. If there's no key you get None back by default. But if you ask for example_dictionary.get(key2: 2) and there is no key2, you will get back the value defined in the get method (here it is 2).
4th Sep 2016, 3:59 PM
Amarie