i have two 2d arrays and i want to iterate through them both and store the values in a new array for example:
days = [["monday", "11:00"],
["monday", "13:00"],
["tuesday", "10:00"]]
and my other array:
modules = [["chemistry", "alkenes"],
["biology", "alcohols"],
["biology, cells"]]
i want the new arrays output to be
["monday", "11:00", "Chemistry", "alkenes"]
currently my code looks likes this:
for x in days:
newarray = []
for i in modules:
newarray.append(x)
newarray.append(i)
but this doesn't work so how would i create this new array