title: How to represent Binary tree into an array using python?
body: <p>I want to convert Binary Tree into Array using Python and i don't know how to give index to tree-node?</p>
  
  <p>I have done this using the formula 
  left_son=(2*p)+1;
  and right_son=(2*p)+2; in java But i'm stuck in python. Is there any Function to give index to tree-node in python ?</p>