input: Write a python function to convert a list of tuples into a dictionary.
  assert convert_to_dict([(1, 'a'), (2, 'b'), (3, 'c')]) == {1: 'a', 2: 'b', 3: 'c'}
  assert convert_to_dict([('name', 'John'), ('age', 30), ('city', 'New York')]) == {'name': 'John', 'age': 30, 'city': 'New York'}
  assert convert_to_dict([]) == {}
output: def convert_to_dict(lst):
      return dict(lst)