write yaml file with two lists python code example Example: add arrays to yaml elements items: [ 1, 2, 3, 4, 5 ] names: [ "one", "two", "three", "four" ]