I'm currently learning how to code in Prolog. I have been trying to connect 2 lists to create a new list such that the first element of the first list will be followed by the first element of the second which will be followed by the second element of the first list and so on. Here is an example of what I'm talking about. Can someone explain to me what I'm doing wrong? It maybe a very simple error that I'm not catching because I'm still learning.
First list: (q, r, s) second list: (l, m, n)
Final list: (q, l, r, m, s, n)