input: def build_dictionary(samples):
   """ Builds a dictionary from a list of string samples where each sample is in the format 'key->value'.
   >>> build_dictionary(["apple->red", "banana->yellow", "cherry->red"])
   {'apple': 'red', 'banana': 'yellow', 'cherry': 'red'}
   """
   dictionary = {}
   for sample in samples:
    key, value = sample.split("->")
    dictionary[key] = value
   return dictionary
output:     
      dictionary = {}
      for sample in samples:
          key, value = sample.split("->")
          dictionary[key] = value
      return dictionary
  