Skip to content

🌀 Single line calculators for RPN and Infix notation

License

Notifications You must be signed in to change notification settings

xDiaym/SingleLineCalculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Single Line RPN

CI
One of the shortest RPN calculator in 1 line; 245 characters

Usage

# For infix notation
$ python slinfix.py <expression>
# For postfix notation
$ python slpostfix.py <expression>

Example:

$ python slinfix.py 2 + 2
4.0

Testing

$ python -m unittest

License

The MIT License

About

🌀 Single line calculators for RPN and Infix notation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages