How is that correct? - Python learning track syllabus

Hello,

I have recently started my learning path on python track in exercism. In the syllabus topic about numbers I cannot understand how both represented results are correct.

(2 + 3) * 4
20

and

(2 + 3 - 4) * 4
20

For me the second one should give value of 4. Maybe I dont understand math behind it, so please explain it to me. Or its just a mistake in syllabus.

1 Like

You can verify whether this is a mistake by trying it in the Python REPL.

@BethanyG [Numbers Concept] Correct arithmetic parenthesis example by MatthijsBlom · Pull Request #3355 · exercism/python · GitHub

1 Like

@pantig Thanks for pointing this out; the fix has been merged.