title: convert prolog input `(a,z,b)` to `[a,z,b]`
body: <p>I am new to prolog.</p>
  
  <p>I need to convert the prolog input which is a given variable in the format of coma separated values inside open and close brace <code>(a,z,b)</code> to a prolog list of the form <code>[a,z,b]</code> . </p>
  
  <p>Can some one please help? </p>