title: Sub functions in Python
body: <p>Im writing a basic program in Python.
  In the program, there is an array called abc. The array contains the following data:
  birthdate and name.</p>
  
  <p>Instead of using:
   abc[1]
  I want to create sub function, like:
  abc.name()
  That will return the value of abc[1]</p>
  
  <p>How can i create a function like this (with dot)? Thanks!!</p>