Login and get coding
In this Bite you will create a simple calculator. It takes a string of
num1 operator num2which you convert into its calculation returning its result. Complete
simple_calculatorto that end supporting
/("true" division so 2/3 = .66 rather than 0).
'2 * 3'into the function it would return
'2 + 6'results in
'-5 * -11'=
'1 / 5'=
For any bad data passed into the function (e.g.
a / 3,
2 * b,
1 ^ 2, etc), you should raise a
Good luck and have fun!