How to put the values of an objects into an array in python code example Example: append element to an array python x = ['Red', 'Blue'] x.append('Yellow')