Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

ggh

Language: Layout:
+ ] Show input
Absolute running time: 0.19 sec, cpu time: 0.18 sec, memory peak: 16 Mb, absolute service time: 0,2 sec 
edit mode |  history  | discussion
Error(s), warning(s):
Traceback (most recent call last):
  File "source_file.py", line 82, in <module>
    convert("A + B ( C - D ) *D")
  File "source_file.py", line 44, in convert
    print(__convert(expression.split()))
  File "source_file.py", line 67, in __convert
    while not opstack.empty() and precedence[temp] >= precedence[token] and token.isidentifier():
KeyError: '*D'
['A', 'B', '+']
['A', 'B', 'C', '*', '+']
['A', 'B', 'C', '+', 'D', '+', '*']

    
                
λ
.NET NoSQL database for rapid development