How is that correct? - Python learning track syllabus


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


(2 + 3 - 4) * 4

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 Correct arithmetic example by MatthijsBlom · Pull Request #3355 · exercism/python · GitHub

1 Like

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