title: Creating a list of lists passed as arguments to the function in LISP
body: <p>I'm writing a code in LISP where I am taking 3 different lists from user as arguments to my function and then I want to create a new list of these lists.. I tried simple coding but it's not giving me desired output.</p>
  
  <p>Here's the code I wrote:</p>
  
  <pre><code>(defun demo(n1 n2 n3)
    (setq list1 '(n1 n2 n3))
    (print list1))
  
  CL-USER 12 : 5 &gt; (demo '(1 2 3) '(4 5 6) '(7 8 9))
  (N1 N2 N3) 
  (N1 N2 N3)
  </code></pre>
  
  <p>When I run this code, instead of giving list of lists it's giving me the output:</p>
  
  <pre><code>(n1 n2 n3)
  </code></pre>
  
  <p>desired output is</p>
  
  <pre><code>((1 2 3) (4 5 6) (7 8 9))
  </code></pre>