title: CliChing, an i-ching on command line in python
body: <p>I've just developed my first python program!
  In order to learn something more out of it I think the best idea and post it here. 
  I'm just wondering if there is a better way to write this program.</p>
  
  <p>It is a python program that brings "i-ching, the book of mutations" with the translation by 
  Richard Wilhelm, on command line.</p>
  
  <p>The complete project is on github:
  <a href="https://github.com/roorco/CliChing/blob/master/cliching.py" rel="nofollow">https://github.com/roorco/CliChing/blob/master/cliching.py</a></p>
  
  <p>Interesting to note: in order to recognize which hexagram the program extracts, it transforms the hexagram in a binary number. In coding this I suppose I understood how Leibniz discovered the binary number studying I-Ching. </p>
  
  <p>Thanks to this exercise I understood better the classes in Python but still one thing is not clear for me:</p>
  
  <p>if I wrote:</p>
  
  <pre><code>class Line(object):
      def intro():
          ...
  </code></pre>
  
  <p>and the end of the code I call: </p>
  
  <pre><code>Line().intro() 
  </code></pre>
  
  <p>the result will be:</p>
  
  <pre><code>TypeError: intro() takes no arguments (1 given)
  </code></pre>
  
  <p>Why?
  The only way I figure out is giving a 'x' argument to intro.
  Other ways are possible?</p>
  
  <p>If you like to, please leave me some feedback.</p>