Re: Calculator on list



I'm trying change my code to not div by zero but I'cant do it. And I
have other problem.
When I put on the list

[2,+,3,*,6] then
W = 2+3*6
X = 20 and this is OK,

but when I put on the list
[2,*,3,+,6] then
W = 2*(3+6)
X = 18 and this is bad because X = 12.

I don't know how do it to work good...



.