diff --git a/data_structures/stacks/infix_to_prefix_conversion.py b/data_structures/stacks/infix_to_prefix_conversion.py index 82e9924b8..28f022fc7 100644 --- a/data_structures/stacks/infix_to_prefix_conversion.py +++ b/data_structures/stacks/infix_to_prefix_conversion.py @@ -14,6 +14,7 @@ Enter an Infix Equation = a + b ^c a+b^c (Infix) -> +a^bc (Prefix) """ + def infix_2_postfix(infix): """ >>> infix_2_postfix("a+b^c") # doctest: +NORMALIZE_WHITESPACE @@ -28,7 +29,7 @@ def infix_2_postfix(infix): | | abc^+ 'abc^+' - >>> infix_2_postfix("1*((-a)*2+b)") # doctest: +NORMALIZE_WHITESPACE + >>> infix_2_postfix("1*((-a)*2+b)") # doctest: +NORMALIZE_WHITESPACE Symbol | Stack | Postfix ------------------------------------------- 1 | | 1