I need to write a function that's these reverses the input.
Write a function reverse(dct) that takes as input a dict and returns a new dict where the keys and values have been flipped. You can assume the input dict has only string values.
What would be the code for this?
.>>> reverse({"boy": "ragazzo", "girl": "ragazza", "baby": "bambino"})
{'ragazzo': 'boy', 'ragazza': 'girl', 'bambino': 'baby'}
.>>> reverse({"boy": "niño", "girl": "niña", "baby": "bebe"})
{'niño': 'boy', 'niña': 'girl', 'bebe': 'baby'}
.>>> reverse({"boy": "garcon", "girl": "fille", "baby": "bébé"})
{'garcon': 'boy', 'fille': 'girl', 'bébé': 'baby'}