Click here to Skip to main content
15,887,935 members
Articles / Programming Languages / Python

Reverse Polish Notation (RPN) Calculator in Python

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
9 Nov 2022CPOL2 min read 10.6K   116   4  
How to create a Reverse Polish Notation (RPN) Calculator using Python
This article is the demonstration of a stack based RPN calculator. In this article, first we will look at how to create a stack class with the basic push and pop operations and then we will see how this stack class can be used to evaluate postfix expressions.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Instructor / Trainer NIIT, India
India India
I am a trainer by profession. Currently I am working with iFuture Technologies(India) as a Senior Faculty. I enjoy programming as a hobby. During my career I have seen the growth and decline of many technologies, many of them being my favorites like Flash, WPF, Windows Mobile Development. Few of my current favorites are Android, Xamarin and Python, though I also like traditional and evergreen languages like PHP, C#, Visual Basic and Java.

Apart from computers, my favorite pastime is bicycling.

Comments and Discussions