human
Can you show me a Python function to yaml for each key value.
assistant
Here is a Python function to yaml for each key value

import yaml

def yaml_key_value(dictionary):
    """Returns a dictionary with each key value in `dictionary` as a yaml string."""
    return {k: yaml.dump(v) for k, v in list(dictionary.items())}

# Enter the dictionary
dictionary = {"name": "dahlia", "age": "23", "city": "Delhi"}

# Calling the function
print((yaml_key_value(dictionary)))

#Example Output
# {'name': 'dahlia\n...\n', 'age': "'23'\n", 'city': 'Delhi\n...\n'}

#Remember to inspect code for bugs.