how to define and add items to an array python code example Example: append element to an array python x = ['Red', 'Blue'] x.append('Yellow')