title: Accessing a particular element in a list
body: <p>I am new to Prolog and wanted to access specific elements of the list.For eg-</p>
  
  <pre><code>L=[name,age,height,weight,gender]
  </code></pre>
  
  <p>How can I access age and height from this list as I want to compare them with some given values???</p>