Simple If Statement Python Dictionary Functions