def lowercase_values(mapping):
 items = mapping.items()
 for (key, value) in items:
  mapping[key] = value.lower()

def lowercase_values ( mapping ) : items = mapping . items ( ) for ( key , value ) in items : mapping [ key ] = value . lower ( )
converts the values in the mapping dict to lowercase .