In the Numpy Operations page.
I’ve read several existing posts here that justify the accepted answer is [0, 1, 2, 3, 4] because the “a + 20” is not being assigned and then printed.
However, the topic is taught using Jupyter Labs, all the examples are in it, and putting in the exact code as it appears in the question gives you:
Regardless, this question could use clarification. Either specify that this question is in colabs/juypter or in normal python.
IMO if it really is a ‘trick’ question (i.e not about the arithmetic and actually about syntax), it’s not quite appropriate this early, as we are still in an introduction to numpy.