Python Tree Data Structure Ge