Text this: Converting pseudocodes into Python functions (Operations on data structures and trees)

  _____     _____    ______     ______    ______  
 / ____||  |  ___|| |      \\  /_   _//  /_____// 
/ //---`'  | ||__   |  --  //   -| ||-   `____ `  
\ \\___    | ||__   |  --  \\   _| ||_   /___//   
 \_____||  |_____|| |______//  /_____//  `__ `    
  `----`   `-----`  `------`   `-----`   /_//     
                                         `-`