Closed arendMoerman closed 5 months ago
We now check dicts by trying to call dict[key]. I think we can reduce the amount of code and increase readability by using the dict.get(key) method.
It looks like we're using if "key" in Dict, an alternative would be if dict.has_key("key") but it's more characters.
if "key" in Dict
if dict.has_key("key")
We now check dicts by trying to call dict[key]. I think we can reduce the amount of code and increase readability by using the dict.get(key) method.