def GenerateTab(depth):
 tab_list = []
 if (depth > 0):
  tab_list.append('  ')
 tab_list.append(('|  ' * depth))
 tab_list.append('+--')
 return ''.join(tab_list)

def GenerateTab ( depth ) : tab_list = [ ] if ( depth > 0 ) : tab_list . append ( '  ' ) tab_list . append ( ( '|  ' * depth ) ) tab_list . append ( '+--' ) return '' . join ( tab_list )
generate tabs to represent branching to children .