Still not clear what you are trying to do. This is not clear
Note that if my code was not generic I would have defined l1, l2, ....
l5 on the code so that whenever I type the inputs, they are
recognized. When typing the list (input) how does one include l1, l2,
.... l5 as part of the inputs for list in the case whereby a code is
generic?
What do you mean by "they are recognized", and "When typing the list (input) how does one include l1, l2, .... l5 as part of the inputs for list"?
What result are you expecting after entering the 3 lists?