Write a Python program to convert a tuple to a dictionary. The tuple is in the form (key, value). Return the dictionary.
Example 1:
Input: (('a', 1), ('b', 2), ('c', 3))
Output: {'a': 1, 'b': 2, 'c': 3}
Example 2:
Input: (('apple', 'fruit'), ('cabbage', 'vegetable'), ('cat', 'animal'))
Output: {'apple': 'fruit', 'cabbage': 'vegetable', 'cat': 'animal'}