input: Write a python function to convert a list of strings to a dictionary with the strings as keys and their lengths as values.
  assert list_to_dict(["Apple", "Fruit", "Banana"]) == {'Apple': 5, 'Fruit': 5, 'Banana': 6}
  assert list_to_dict(["Hello", "World"]) == {'Hello': 5, 'World': 5}
  assert list_to_dict(["Python", "is", "awesome"]) == {'Python': 6, 'is': 2, 'awesome': 7}
output: def list_to_dict(lst):
      return {s: len(s) for s in lst}