Skip to content

Instantly share code, notes, and snippets.

View Henner365's full-sized avatar

henrik arboe jensen Henner365

View GitHub Profile
@Henner365
Henner365 / rpn.py
Last active May 24, 2018 09:49 — forked from slackorama/rpn.py
Python implementation of an RPN calculator
#!/usr/bin/env python
# an rpn calculator in python
# > 19 2.14 + 4.5 2 4.3 / - *
# [85.297441860465113]
# only supports two operands and then an operator
import operator
ops = { '+': operator.add,