Sign InCoursewareNuggetsTutorials AboutClassesCodePad

Print Expression in Infix Notation with Parentheses

Write a function print_tree_inorder so that it puts parentheses around every operator and pair of operands.

def print_tree_inorder(tree):
© CS Wonders·About·Classes·Cheatsheet