Light Mode
Dark Mode
missunderstanding these assert cases:

I would like to know why the first one gives 2 and the second one 3.

assert calculator("1+2") == "2"
assert calculator("1+2-") == "3"

Thanks in advance :)

Created: Feb. 16, 2023, 1:37 p.m.
Updated: Feb. 16, 2023, 2:11 p.m.
0
33
User avatar
dig