input: def build_dictionary(samples):
      """Build 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'}
      >>> build_dictionary(["cat->meow", "dog->woof", "bird->tweet"])
      {'cat': 'meow', 'dog': 'woof', 'bird': 'tweet'}
      """
      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