[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2023-10-11 03:36:36 +00:00
parent d503bd86fa
commit da1e8699d7

View File

@ -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