Let's say I have a list of lists:
name_list = ['John', 'Smith'], ['Sarah', 'Nichols'], ['Alex', 'Johnson']
I have another arbitrary list, let's say of colors:
color_list = ['Red', 'Green', 'Blue']
What's the simplest or most efficient way of appending a given number of colors to the names in rotation? For example, if I chose two colors the returned list would look like:
output_list = ['John', 'Smith', 'Red'], ['Sarah', 'Nichols', 'Green'], ['Alex', 'Johnson', 'Red']
or if I chose 3 colors:
output_list = ['John', 'Smith', 'Red'], ['Sarah', 'Nichols', 'Green'], ['Alex', 'Johnson', 'Blue']