input: Write a function to build a dictionary from a list of strings where each string is in the format "key->value". Return the dictionary.
  def build_dictionary(samples):
   dictionary = {}
   for sample in samples:
    key, value = sample.split("->")
    dictionary[key] = value
   return dictionary
  
  assert build_dictionary(["apple->red", "banana->yellow", "cherry->red"])=={"apple": "red", "banana": "yellow", "cherry": "red"}
  assert build_dictionary(["dog->pet", "cat->pet", "bird->wild"])=={"dog": "pet", "cat": "pet", "bird": "wild"}
  assert build_dictionary(["one->1", "two->2", "three->3"])=={"one": "1", "two": "2", "three": "3"}
  assert build_dictionary([])=={}
output: def build_dictionary(samples):
   dictionary = {}
   for sample in samples:
    key, value = sample.split("->")
    dictionary[key] = value
   return dictionary