README.md 223 Bytes
Newer Older
Roberts Ivanovs's avatar
Roberts Ivanovs committed
1
To run tests: `python test_calculator_tree.py`
Roberts Ivanovs's avatar
Roberts Ivanovs committed
2

Roberts Ivanovs's avatar
Roberts Ivanovs committed
3
4
Main code resides in `tree_traversing.py`

5
6
7
8
Main function that can calculate the strings: `calculate(string)`

e.g

Roberts Ivanovs's avatar
Roberts Ivanovs committed
9
`calculate('-4-7*3').calculate_below()` will result in `-25`