Skip to content

Given a string containing an expression containing integers, operators, and parentheses, calculate and return the result.

Notifications You must be signed in to change notification settings

hpham17/PythonCalculatorParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Calculator Parser

Given a input string containing an expression containing integers, operators, and parentheses, write a function that calculates and returns the result.

Operator precedence has to be considered.

Example

s = "12+34/(3-4)+21*4"
calculate(s)
=> 62

About

Given a string containing an expression containing integers, operators, and parentheses, calculate and return the result.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages