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

ss

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 
latest |  history
Error(s), warning(s):
Traceback (most recent call last):
  File "source_file.py", line 81, in <module>
    convert("A *X/ ( B + C ) + 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: '*X/'
['A', 'B', '+']
['A', 'B', 'C', '*', '+']

    
                
λ
.NET NoSQL database for rapid development