key-value swap
Return the given dict but with its key-value swapped.
Sample Code:
def swapKeyValue(d):
# Enter your logic here...
Examples:
Input: {key:'value'}
Output: {value:'key'}
Explanation: The key has been swapped with value in the dict.
Input: {lang:'Javascript',lang2:'Java'}
Output: {Javascript: 'lang',Java:'lang2'}
Explanation: The key has been swapped with value in the dict.