Write a Python program to convert a given list to a dictionary with each item as a key-value pair.
list = [("a", 1), ("b", 2), ("c", 3), ("d", 4)]
list = [("a", 1), ("b", 2), ("c", 3), ("d", 4)]

d = dict(list)

print(d)
# Output: {'a': 1, 'b': 2, 'c': 3, 'd': 4}